3v4l.org

run code in 300+ PHP versions simultaneously
<?php function printer() { for ($i = 0; $i < 10; $i++) { $string = (yield $i); var_dump($string); } } $printer = printer(); echo 'current: '; var_dump($printer->current()); $printer->send('Hello world!'); echo 'current: '; var_dump($printer->current()); $printer->next(); echo 'current: '; var_dump($printer->current()); $printer->send('Bye world!'); echo 'current: '; var_dump($printer->current());

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.10.0000.01917.68
8.3.140.0030.00716.70
8.3.130.0060.00316.59
8.3.120.0080.00018.76
8.3.110.0040.00416.75
8.3.100.0080.00824.06
8.3.90.0000.00826.77
8.3.80.0060.00616.35
8.3.70.0130.01016.58
8.3.60.0130.00918.31
8.3.50.0090.00416.64
8.3.40.0110.00418.76
8.3.30.0090.00618.54
8.3.20.0000.00721.73
8.3.10.0050.00323.69
8.3.00.0000.00821.22
8.2.260.0040.00416.54
8.2.250.0040.00418.35
8.2.240.0000.01017.05
8.2.230.0070.01420.94
8.2.220.0030.00737.54
8.2.210.0120.00626.77
8.2.200.0040.00716.88
8.2.190.0040.01116.75
8.2.180.0070.01018.16
8.2.170.0090.00922.96
8.2.160.0100.00619.04
8.2.150.0090.00024.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00418.85
8.2.110.0030.00720.47
8.2.100.0120.00017.78
8.2.90.0030.00517.91
8.2.80.0040.00417.97
8.2.70.0090.00018.03
8.2.60.0030.00818.22
8.2.50.0000.00818.10
8.2.40.0030.00519.41
8.2.30.0000.00817.63
8.2.20.0050.00218.02
8.2.10.0000.00717.77
8.2.00.0050.00318.08
8.1.300.0060.00318.54
8.1.290.0070.00318.88
8.1.280.0180.00325.92
8.1.270.0120.00622.09
8.1.260.0030.00526.35
8.1.250.0020.00528.09
8.1.240.0030.00719.14
8.1.230.0040.00822.66
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01017.35
8.1.190.0000.00917.10
8.1.180.0040.00418.10
8.1.170.0000.00818.64
8.1.160.0070.00018.84
8.1.150.0050.00220.21
8.1.140.0040.00417.70
8.1.130.0070.00019.15
8.1.120.0000.00717.49
8.1.110.0050.00317.38
8.1.100.0040.00417.37
8.1.90.0000.00817.38
8.1.80.0040.00417.25
8.1.70.0030.00317.32
8.1.60.0040.00417.61
8.1.50.0040.00417.52
8.1.40.0000.00717.57
8.1.30.0040.00417.67
8.1.20.0000.00817.68
8.1.10.0040.00417.51
8.1.00.0040.00417.49
8.0.300.0040.00419.91
8.0.290.0040.00416.75
8.0.280.0040.00418.02
8.0.270.0040.00418.02
8.0.260.0000.00716.90
8.0.250.0060.00016.85
8.0.240.0070.00016.98
8.0.230.0040.00416.95
8.0.220.0040.00316.79
8.0.210.0000.00716.82
8.0.200.0000.00816.93
8.0.190.0000.00816.93
8.0.180.0040.00416.77
8.0.170.0060.00316.93
8.0.160.0040.00416.81
8.0.150.0070.00016.83
8.0.140.0000.00716.70
8.0.130.0030.00313.23
8.0.120.0040.00416.83
8.0.110.0090.00016.83
8.0.100.0030.00516.80
8.0.90.0070.00016.75
8.0.80.0150.00316.89
8.0.70.0040.00416.88
8.0.60.0000.00716.86
8.0.50.0040.00416.86
8.0.30.0130.00917.08
8.0.20.0120.00817.40
8.0.10.0040.00416.85
8.0.00.0070.01216.88
7.4.330.0000.00515.55
7.4.320.0000.00616.57
7.4.300.0000.00716.51
7.4.290.0030.00316.64
7.4.280.0040.00416.50
7.4.270.0030.00316.61
7.4.260.0000.00716.56
7.4.250.0030.00516.58
7.4.240.0000.00816.54
7.4.230.0050.00216.64
7.4.220.0070.00016.52
7.4.210.0030.01216.64
7.4.200.0030.00416.50
7.4.160.0100.00716.47
7.4.140.0150.00417.86
7.4.130.0130.00616.68
7.4.120.0060.01216.49
7.4.110.0080.00816.51
7.4.100.0070.01016.38
7.4.90.0090.00916.38
7.4.80.0110.00819.39
7.4.70.0090.00916.61
7.4.60.0030.01216.54
7.4.50.0060.01216.50
7.4.40.0040.01216.26
7.4.00.0070.00914.94
7.3.330.0030.00313.36
7.3.320.0060.00013.24
7.3.310.0080.00016.25
7.3.300.0050.00216.39
7.3.290.0030.00316.40
7.3.280.0060.00816.33
7.3.260.0100.01016.41
7.3.250.0110.01016.37
7.3.240.0100.00816.41
7.3.230.0130.01116.32
7.3.210.0100.01316.53
7.3.200.0170.00016.61
7.3.190.0060.01516.57
7.3.180.0060.00916.68
7.3.170.0100.00716.57
7.3.160.0130.00316.33
7.3.120.0090.00614.68
7.3.110.0120.00614.88
7.3.100.0090.00614.77
7.3.90.0120.00314.80
7.3.80.0000.00914.78
7.3.70.0060.00614.86
7.3.60.0120.00014.82
7.3.50.0090.00014.84
7.3.40.0030.00915.06
7.3.30.0060.01214.66
7.3.20.0070.00716.89
7.3.10.0040.00616.64
7.3.00.0050.00516.54
7.2.330.0060.01216.64
7.2.320.0120.00616.67
7.2.310.0110.01116.75
7.2.300.0090.01316.36
7.2.290.0110.01116.43
7.2.250.0070.01414.99
7.2.240.0130.00315.05
7.2.230.0070.01014.89
7.2.220.0100.00715.03
7.2.210.0090.00615.15
7.2.200.0060.00915.18
7.2.190.0000.01115.11
7.2.180.0060.00614.85
7.2.170.0030.01015.11
7.2.130.0070.00716.94
7.2.120.0130.00016.82
7.2.110.0000.01016.83
7.2.100.0040.01117.05
7.2.90.0100.00716.78
7.2.80.0100.00717.10
7.2.70.0060.00616.84
7.2.60.0060.00816.85
7.2.50.0060.00316.98
7.2.40.0090.00617.05
7.2.30.0100.01217.60
7.2.20.0180.00617.57
7.2.10.0120.01417.62
7.2.00.0110.00917.40
7.1.330.0080.00515.73
7.1.320.0100.00315.66
7.1.310.0000.00815.77
7.1.300.0060.00315.71
7.1.290.0030.00615.59
7.1.280.0030.01015.97
7.1.270.0060.00315.43
7.1.260.0000.01115.81
7.1.250.0070.00315.83
7.1.200.0060.00615.75
7.1.150.0400.01216.87
7.1.140.0170.01417.08
7.1.130.0200.01116.80
7.1.120.0110.01417.10
7.1.110.0100.01316.09
7.1.100.0160.01215.94
7.1.90.0140.01016.03
7.1.80.0330.01416.15
7.1.70.0100.00915.44
7.1.60.0420.01133.16
7.1.50.0410.01532.89
7.1.40.0360.01432.49
7.1.30.0260.01732.91
7.1.20.0360.01632.81
7.1.10.0120.01114.70
7.1.00.0160.00714.63

preferences:
42.99 ms | 403 KiB | 5 Q