3v4l.org

run code in 300+ PHP versions simultaneously
<?php function printer() { echo "I'm printer!".PHP_EOL; while (true) { $string = yield; echo $string.PHP_EOL; } } $printer = printer(); //var_dump($printer->send('Hello world!')); foreach ($printer as $a) { var_dump($printer->send('Bye world!')); }

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.3.60.0310.01718.30
8.3.50.0180.00717.98
8.3.40.0190.00718.68
8.3.30.0530.01318.69
8.3.20.0230.00619.30
8.3.10.0230.00821.91
8.3.00.0130.00020.64
8.2.180.0440.00618.29
8.2.170.0470.01322.96
8.2.160.0130.01320.89
8.2.150.0270.00324.18
8.2.140.0260.00624.66
8.2.130.0210.01119.82
8.2.120.0190.00826.35
8.2.110.0100.00721.12
8.2.100.0360.00717.78
8.2.90.0080.00819.53
8.2.80.0220.00017.97
8.2.70.0140.00717.93
8.2.60.0050.01418.16
8.2.50.0100.01018.10
8.2.40.0170.00019.47
8.2.30.0100.00319.20
8.2.20.0180.00018.01
8.2.10.0100.01018.04
8.2.00.0080.00317.79
8.1.280.0400.01825.92
8.1.270.0200.00818.92
8.1.260.0200.00926.35
8.1.250.0240.00428.09
8.1.240.0180.01822.46
8.1.230.0340.00820.97
8.1.220.0160.00317.74
8.1.210.0120.01218.95
8.1.200.0080.00417.36
8.1.190.0040.01217.13
8.1.180.0070.01118.10
8.1.170.0040.00818.44
8.1.160.0140.00018.96
8.1.150.0100.01018.86
8.1.140.0120.00622.16
8.1.130.0000.01120.15
8.1.120.0070.00317.57
8.1.110.0140.00817.42
8.1.100.0060.00617.55
8.1.90.0140.00717.51
8.1.80.0030.00617.49
8.1.70.0090.01317.39
8.1.60.0030.00717.62
8.1.50.0000.01917.44
8.1.40.0200.00417.61
8.1.30.0030.00717.57
8.1.20.0140.00917.56
8.1.10.0190.00717.57
8.1.00.0030.00717.50
8.0.300.0090.00919.76
8.0.290.0030.00716.75
8.0.280.0100.00018.45
8.0.270.0140.00517.23
8.0.260.0030.00718.33
8.0.250.0060.00616.94
8.0.240.0110.00016.86
8.0.230.0090.00916.85
8.0.220.0090.00316.94
8.0.210.0120.00616.70
8.0.200.0070.00316.78
8.0.190.0120.00616.95
8.0.180.0120.01216.91
8.0.170.0110.01516.91
8.0.160.0200.00016.97
8.0.150.0090.01416.78
8.0.140.0140.00516.89
8.0.130.0170.00413.31
8.0.120.0080.01116.94
8.0.110.0140.01016.84
8.0.100.0080.00816.89
8.0.90.0130.00416.69
8.0.80.0330.03016.80
8.0.70.0000.01016.90
8.0.60.0030.00916.72
8.0.50.0000.01016.67
8.0.30.0460.02317.05
8.0.20.0430.06617.40
8.0.10.0120.00616.93
8.0.00.0550.03916.60
7.4.330.0120.00615.55
7.4.320.0100.00016.48
7.4.300.0030.01016.38
7.4.290.0090.00916.43
7.4.280.0050.02016.36
7.4.270.0180.00416.40
7.4.260.0070.00416.30
7.4.250.0050.00516.37
7.4.240.0180.00016.47
7.4.230.0040.01316.56
7.4.220.0170.00416.38
7.4.210.0250.02216.45
7.4.200.0170.00616.45
7.4.160.0560.04116.46
7.4.140.0490.03017.86
7.4.130.0360.03216.41
7.4.120.0490.02716.56
7.4.110.1060.02716.45
7.4.100.0860.06016.22
7.4.90.0890.04716.40
7.4.80.0400.05719.39
7.4.70.0610.03616.51
7.4.60.0380.04516.40
7.4.50.0040.02116.32
7.4.40.0440.03416.26
7.4.00.0220.00614.85
7.3.330.0120.00413.37
7.3.320.0140.00513.37
7.3.310.0180.00416.34
7.3.300.0040.00716.24
7.3.290.0030.00816.13
7.3.280.0180.02616.28
7.3.260.0460.04316.27
7.3.240.0660.04016.37
7.3.230.0640.02516.44
7.3.210.0230.02216.45
7.3.200.0620.01616.33
7.3.190.1090.04416.60
7.3.180.0230.03216.29
7.3.170.0530.02816.61
7.3.160.0640.03116.46
7.2.330.0810.04416.63
7.2.320.0300.02716.49
7.2.310.0550.06616.44
7.2.300.0390.03616.54
7.2.290.0140.08716.63
7.2.110.0200.03016.53
7.2.100.0320.02614.68
7.2.90.0270.01714.59
7.2.80.0530.01914.85
7.2.70.0230.03315.18
7.2.60.0520.02515.05
7.2.50.0460.02815.09
7.2.40.0220.01715.13
7.2.30.0440.02214.86
7.2.20.0360.02115.07
7.2.10.0380.02215.13
7.2.00.0430.01515.04
7.1.230.0400.02015.80
7.1.220.0610.01315.70
7.1.210.0290.01613.89
7.1.200.0220.02213.85
7.1.190.1240.01913.88
7.1.180.0540.02213.95
7.1.170.0370.01613.78
7.1.160.0570.01613.88
7.1.150.0620.00913.82
7.1.140.0680.03213.93
7.1.130.0250.02813.91
7.1.120.0640.01813.71
7.1.110.0590.01113.81
7.1.100.0570.01014.09
7.1.90.0370.01714.05
7.1.80.0380.02213.69
7.1.70.0530.02013.85
7.1.60.0550.02032.07
7.1.50.0540.03332.08
7.1.40.0590.03532.15
7.1.30.0710.02432.11
7.1.20.0670.03131.87
7.1.10.0430.02213.71
7.1.00.0510.01513.60
5.6.380.0160.02114.55

preferences:
43.77 ms | 401 KiB | 5 Q