3v4l.org

run code in 300+ PHP versions simultaneously
<?php function printer() { echo "I'm printer!".PHP_EOL; while (true) { $string = yield 'yielded'; echo $string.PHP_EOL; } } $printer = printer(); $printer->rewind(); var_dump($printer->current()); //$printer->send('Hello world!'); //$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.4.20.0210.00017.79
8.4.10.0060.00317.64
8.3.150.0050.00320.51
8.3.140.0040.01519.05
8.3.130.0050.00318.28
8.3.120.0000.00818.85
8.3.110.0040.00416.75
8.3.100.0070.00320.43
8.3.90.0040.00418.54
8.3.80.0060.00318.43
8.3.70.0110.00716.36
8.3.60.0070.01418.31
8.3.50.0140.00522.82
8.3.40.0100.00718.70
8.3.30.0110.00418.72
8.3.20.0000.00721.89
8.3.10.0040.00421.58
8.3.00.0000.00822.09
8.2.270.0100.01017.05
8.2.260.0080.00016.66
8.2.250.0050.00316.61
8.2.240.0040.00418.87
8.2.230.0120.00320.94
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0000.00918.54
8.2.190.0110.00718.54
8.2.180.0160.00616.63
8.2.170.0090.00622.96
8.2.160.0100.00321.89
8.2.150.0050.00324.18
8.2.140.0070.01024.66
8.2.130.0000.00726.16
8.2.120.0040.00419.40
8.2.110.0070.00422.11
8.2.100.0130.00317.78
8.2.90.0040.00419.26
8.2.80.0050.00317.97
8.2.70.0080.00017.63
8.2.60.0000.00817.80
8.2.50.0040.00418.10
8.2.40.0040.00420.38
8.2.30.0000.00819.19
8.2.20.0070.00318.00
8.2.10.0040.00417.88
8.2.00.0070.00017.70
8.1.310.0040.00416.80
8.1.300.0110.00718.26
8.1.290.0030.00618.88
8.1.280.0060.01025.92
8.1.270.0030.00523.83
8.1.260.0030.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00622.03
8.1.230.0090.00317.77
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0070.00317.35
8.1.190.0030.00617.36
8.1.180.0040.00418.10
8.1.170.0040.00418.41
8.1.160.0000.00718.78
8.1.150.0040.00422.05
8.1.140.0040.00419.50
8.1.130.0070.00018.93
8.1.120.0000.00717.45
8.1.110.0040.00417.37
8.1.100.0000.00717.49
8.1.90.0040.00417.29
8.1.80.0040.00417.38
8.1.70.0030.00317.38
8.1.60.0040.00417.55
8.1.50.0040.00717.51
8.1.40.0030.00617.45
8.1.30.0040.00417.59
8.1.20.0000.00817.54
8.1.10.0040.00417.37
8.1.00.0030.00617.45
8.0.300.0040.00418.77
8.0.290.0050.00316.88
8.0.280.0080.00018.49
8.0.270.0000.00817.18
8.0.260.0040.00417.29
8.0.250.0030.00316.97
8.0.240.0030.00316.92
8.0.230.0000.00716.88
8.0.220.0040.00416.85
8.0.210.0030.00316.80
8.0.200.0040.00417.00
8.0.190.0030.00516.98
8.0.180.0030.00816.89
8.0.170.0030.00316.94
8.0.160.0030.00516.91
8.0.150.0040.00416.87
8.0.140.0030.00416.85
8.0.130.0050.00313.34
8.0.120.0070.00016.77
8.0.110.0080.00016.84
8.0.100.0070.00016.93
8.0.90.0030.00516.95
8.0.80.0170.00316.84
8.0.70.0050.00316.85
8.0.60.0040.00416.93
8.0.50.0030.00516.81
8.0.30.0070.01117.08
8.0.20.0090.00917.40
8.0.10.0040.00416.91
8.0.00.0090.00916.54
7.4.330.0060.00015.55
7.4.320.0040.00416.45
7.4.300.0000.00616.52
7.4.290.0030.00316.43
7.4.280.0030.00516.50
7.4.270.0030.00316.54
7.4.260.0000.01116.63
7.4.250.0040.00416.48
7.4.240.0000.00716.45
7.4.230.0040.00416.41
7.4.220.0090.00916.45
7.4.210.0070.01016.65
7.4.200.0030.00316.50
7.4.160.0040.01316.49
7.4.150.0130.00617.40
7.4.140.0140.01017.86
7.4.130.0060.01216.50
7.4.120.0090.00916.52
7.4.110.0090.01216.50
7.4.100.0100.01316.67
7.4.90.0060.01216.45
7.4.80.0060.01219.39
7.4.70.0030.01316.48
7.4.60.0060.00916.34
7.4.50.0040.01516.52
7.4.40.0090.00816.41
7.4.30.0150.00316.52
7.4.00.0060.00914.95
7.3.330.0050.00013.09
7.3.320.0000.00513.35
7.3.310.0030.00316.16
7.3.300.0000.00616.16
7.3.290.0000.00716.35
7.3.280.0110.00616.31
7.3.270.0090.00617.40
7.3.260.0050.01316.45
7.3.250.0060.01616.32
7.3.240.0090.01116.35
7.3.230.0040.01316.41
7.3.210.0130.00316.35
7.3.200.0050.01516.29
7.3.190.0120.01216.51
7.3.180.0000.02016.24
7.3.170.0060.01016.31
7.3.160.0040.01216.49
7.2.330.0130.00316.71
7.2.320.0090.01216.72
7.2.310.0100.00616.56
7.2.300.0030.02116.57
7.2.290.0130.00816.45
7.2.60.0030.00716.95
7.2.00.0110.00619.44
7.1.200.0000.01015.52
7.1.100.0000.01318.20
7.1.70.0050.00317.02
7.1.60.0680.01215.18
7.1.50.0080.00816.96
7.1.10.0100.05722.26
7.1.00.0030.06022.38
7.0.200.0030.01316.82
7.0.150.0130.05022.00
7.0.140.0130.05021.89
7.0.130.0070.05721.84
7.0.120.0070.05721.98
7.0.110.0170.04721.86
7.0.100.0130.04721.88
7.0.90.0000.06321.98
7.0.80.0030.05721.88
7.0.70.0130.04721.93
7.0.60.0070.05721.93
7.0.50.0100.05321.86
7.0.40.0100.05321.88
7.0.30.0100.05021.93
7.0.20.0070.05321.89
7.0.10.0070.05321.75
7.0.00.0030.06021.95

preferences:
124.32 ms | 403 KiB | 5 Q