3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo() : Generator { yield 1; return 'not a generator'; } foreach($g = foo() as $b) { print $b; // print 1 } echo $g->getReturn(); // print 'not a generator' ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.90.0110.00716.66
8.5.80.0110.00616.84
8.5.70.0080.00618.24
8.5.60.0120.00916.49
8.5.50.0090.00716.73
8.5.30.0120.00618.13
8.5.20.0090.01020.16
8.5.10.0120.00516.63
8.5.00.0130.00720.03
8.4.240.0070.00319.55
8.4.230.0110.00919.67
8.4.220.0090.01121.49
8.4.210.0110.01121.41
8.4.180.0110.00921.95
8.4.170.0120.01023.87
8.4.160.0110.01123.91
8.4.150.0070.00516.87
8.4.140.0140.00817.46
8.4.130.0140.00717.87
8.4.120.0090.01120.59
8.4.110.0120.00918.64
8.4.100.0120.00717.63
8.4.90.0110.00718.88
8.4.80.0130.00717.59
8.4.70.0240.00819.34
8.4.60.0140.00419.06
8.4.50.0160.00619.18
8.4.40.0200.00418.90
8.4.30.0170.00517.46
8.4.20.0180.00517.58
8.4.10.0180.00317.45
8.3.330.0070.00518.37
8.3.320.0150.00518.32
8.3.310.0130.00818.36
8.3.300.0120.00820.79
8.3.290.0130.00720.72
8.3.280.0110.01020.16
8.3.270.0080.01316.48
8.3.260.0110.00716.63
8.3.250.0140.00218.78
8.3.240.0090.01016.62
8.3.230.0100.00916.63
8.3.220.0200.00216.68
8.3.210.0150.00416.37
8.3.200.0170.00416.59
8.3.190.0180.00316.44
8.3.180.0150.00416.38
8.3.170.0160.00516.59
8.3.160.0200.00516.52
8.3.150.0170.00616.49
8.3.140.0200.00318.18
8.3.130.0170.00516.86
8.3.120.0140.00616.44
8.3.110.0160.00416.53
8.3.100.0160.00916.41
8.3.90.0170.00416.44
8.3.80.0180.00416.42
8.3.70.0150.00716.52
8.3.60.0140.00716.63
8.3.50.0180.00316.32
8.3.40.0140.00617.36
8.3.30.0180.00319.14
8.3.20.0180.00117.39
8.3.10.0120.00717.36
8.3.00.0110.00317.27
8.2.320.0120.01018.20
8.2.310.0080.01118.18
8.2.300.0110.00918.22
8.2.290.0080.00420.40
8.2.280.0150.00418.06
8.2.270.0110.00816.21
8.2.260.0140.00318.32
8.2.250.0140.00516.70
8.2.240.0130.00416.63
8.2.230.0150.00318.15
8.2.220.0130.00616.08
8.2.210.0170.00516.23
8.2.200.0130.00416.14
8.2.190.0150.00316.13
8.2.180.0150.00216.27
8.2.170.0140.00517.79
8.2.160.0160.00117.48
8.2.150.0180.00217.46
8.2.140.0150.00517.29
8.2.130.0120.00617.37
8.2.120.0160.00617.48
8.2.110.0150.00417.48
8.2.100.0120.00717.40
8.2.90.0130.00417.61
8.2.80.0170.00217.27
8.2.70.0150.00417.54
8.2.60.0140.00317.49
8.2.50.0140.00517.36
8.2.40.0130.00517.32
8.2.30.0140.00417.52
8.2.20.0140.00317.47
8.2.10.0150.00417.25
8.2.00.0150.00317.54
8.1.340.0110.01021.77

preferences:
41 ms | 881 KiB | 5 Q