3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { if (1 < 0) { yield 'a'; } } function test2() { yield 'a'; yield 'b'; } $test = test(); $test2 = test2(); var_dump($test->valid(), $test2->valid()); echo 'Iterate test', PHP_EOL; foreach ($test as $a) { echo $a, PHP_EOL; } echo 'Iterate test2', PHP_EOL; foreach ($test2 as $a) { echo $a, PHP_EOL; }

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.0120.00316.75
8.3.50.0110.00416.38
8.3.40.0120.00618.88
8.3.30.0090.00918.84
8.3.20.0000.00720.04
8.3.10.0080.00021.81
8.3.00.0040.00417.72
8.2.180.0210.00316.72
8.2.170.0040.01822.96
8.2.160.0080.00620.21
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00420.53
8.2.120.0040.00426.35
8.2.110.0210.00021.18
8.2.100.0070.00417.94
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0090.00417.38
8.2.60.0050.00317.80
8.2.50.0000.00818.10
8.2.40.0030.00622.19
8.2.30.0000.00719.12
8.2.20.0030.00617.93
8.2.10.0040.00418.01
8.2.00.0000.00717.95
8.1.280.0120.00625.92
8.1.270.0040.00422.11
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00623.92
8.1.230.0080.00317.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0060.00318.58
8.1.160.0000.00818.87
8.1.150.0040.00418.93
8.1.140.0050.00219.56
8.1.130.0040.00418.93
8.1.120.0020.00517.46
8.1.110.0030.00617.46
8.1.100.0000.00817.50
8.1.90.0040.00417.45
8.1.80.0000.01117.45
8.1.70.0000.00717.34
8.1.60.0000.00717.60
8.1.50.0040.00417.43
8.1.40.0040.00417.55
8.1.30.0110.00017.65
8.1.20.0040.00417.65
8.1.10.0040.00417.48
8.1.00.0040.00417.54
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00318.40
8.0.270.0040.00417.14
8.0.260.0070.00016.88
8.0.250.0030.00317.00
8.0.240.0030.00316.87
8.0.230.0030.00316.88
8.0.220.0070.00016.92
8.0.210.0000.00716.98
8.0.200.0000.00616.90
8.0.190.0040.00416.99
8.0.180.0000.00716.94
8.0.170.0070.00016.86
8.0.160.0050.00316.96
8.0.150.0040.00416.91
8.0.140.0000.00716.88
8.0.130.0060.00013.30
8.0.120.0000.00716.80
8.0.110.0000.00816.79
8.0.100.0050.00317.07
8.0.90.0080.00016.83
8.0.80.0060.00916.95
8.0.70.0000.00816.75
8.0.60.0000.00716.95
8.0.50.0040.00417.02
8.0.30.0150.00517.11
8.0.20.0080.01017.40
8.0.10.0000.00716.93
8.0.00.0070.01116.81
7.4.330.0050.00015.55
7.4.320.0060.00016.56
7.4.300.0070.00016.53
7.4.290.0030.00316.43
7.4.280.0040.00416.50
7.4.270.0050.00216.61
7.4.260.0030.00316.63
7.4.250.0000.00716.57
7.4.240.0000.00716.49
7.4.230.0000.00716.55
7.4.220.0030.01416.49
7.4.210.0100.00616.63
7.4.200.0000.00716.71
7.4.160.0140.00516.53
7.4.150.0040.01617.40
7.4.140.0090.01217.86
7.4.130.0090.00916.44
7.4.120.0090.01016.53
7.4.110.0090.00916.50
7.4.100.0130.01316.56
7.4.90.0140.00716.52
7.4.80.0110.00519.39
7.4.70.0080.00816.66
7.4.60.0060.01616.61
7.4.50.0040.01116.36
7.4.40.0060.01116.47
7.4.30.0180.00316.54
7.4.10.0070.01315.68
7.4.00.0070.00815.34
7.3.330.0040.00313.39
7.3.320.0030.00313.36
7.3.310.0000.00616.18
7.3.300.0000.00716.28
7.3.290.0070.00016.22
7.3.280.0110.00616.37
7.3.270.0100.00717.40
7.3.260.0050.01316.51
7.3.250.0090.00916.46
7.3.240.0090.00916.61
7.3.230.0150.00616.58
7.3.210.0120.00616.55
7.3.200.0100.00616.60
7.3.190.0040.01216.41
7.3.180.0000.01716.37
7.3.170.0120.00316.46
7.3.160.0130.00616.50
7.3.130.0080.00915.72
7.3.120.0080.00915.65
7.3.110.0080.01015.69
7.3.100.0080.01015.51
7.3.90.0090.00715.64
7.3.80.0050.00915.82
7.3.70.0060.00715.59
7.3.60.0070.00815.67
7.3.50.0030.01315.62
7.3.40.0050.00915.68
7.3.30.0070.00815.48
7.3.20.0120.00317.36
7.3.10.0070.00917.47
7.3.00.0060.00917.30
7.2.330.0120.00616.33
7.2.320.0120.00616.67
7.2.310.0090.01216.80
7.2.300.0130.01016.77
7.2.290.0120.00616.58
7.2.260.0050.01315.70
7.2.250.0060.01215.91
7.2.240.0060.00915.83
7.2.230.0040.01315.67
7.2.220.0090.00515.58
7.2.210.0070.00915.80
7.2.200.0110.00615.83
7.2.190.0070.00715.78
7.2.180.0030.01215.85
7.2.170.0030.01215.86
7.2.160.0020.01015.67
7.2.150.0090.00517.62
7.2.140.0060.00817.76
7.2.130.0130.00517.81
7.2.120.0030.01217.57
7.2.110.0050.01317.71
7.2.100.0070.01117.69
7.2.90.0070.01017.73
7.2.80.0050.01317.64
7.2.70.0030.01117.67
7.2.60.0010.01317.30
7.2.50.0070.00717.52
7.2.40.0080.00617.60
7.2.30.0080.00617.70
7.2.20.0080.01017.52
7.2.10.0080.00517.70
7.2.00.0040.00918.04
7.1.330.0060.00916.42
7.1.320.0040.01216.19
7.1.310.0060.01016.29
7.1.300.0030.01016.58
7.1.290.0080.01016.50
7.1.280.0080.00716.55
7.1.270.0060.00816.51
7.1.260.0100.00216.45
7.1.250.0070.01016.46
7.1.240.0050.01016.40
7.1.230.0060.01116.52
7.1.220.0030.01116.44
7.1.210.0110.00216.48
7.1.200.0050.00916.23
7.1.190.0050.01016.46
7.1.180.0080.00816.45
7.1.170.0080.00716.56
7.1.160.0050.00516.48
7.1.150.0060.00816.44
7.1.140.0080.00916.50
7.1.130.0050.00616.54
7.1.120.0030.01216.45
7.1.110.0030.00916.61
7.1.100.0070.00717.04
7.1.90.0050.00816.41
7.1.80.0030.00816.43
7.1.70.0060.00916.65
7.1.60.0110.01022.63
7.1.50.0110.01222.42
7.1.40.0130.00722.56
7.1.30.0100.01022.42
7.1.20.0090.01222.38
7.1.10.0070.00816.38
7.1.00.0070.01116.50
7.0.330.0080.00916.20
7.0.320.0110.00215.94
7.0.310.0080.00716.25
7.0.300.0060.00716.24
7.0.290.0030.00916.08
7.0.280.0080.01016.21
7.0.270.0070.00716.08
7.0.260.0070.00816.14
7.0.250.0060.00816.27
7.0.240.0060.00716.30
7.0.230.0040.00916.18
7.0.220.0030.01016.18
7.0.210.0000.01316.19
7.0.200.0060.00816.36
7.0.190.0000.01316.41
7.0.180.0070.00716.16
7.0.170.0040.00816.28
7.0.160.0080.00716.04
7.0.150.0080.00816.23
7.0.140.0110.00516.10
7.0.130.0050.01016.16
7.0.120.0050.00816.18
7.0.110.0050.01016.19
7.0.100.0080.00916.21
7.0.90.0060.00916.13
7.0.80.0060.00816.25
7.0.70.0060.01016.28
7.0.60.0050.01016.16
7.0.50.0040.01216.25
7.0.40.0070.00814.94
7.0.30.0040.01014.88
7.0.20.0070.00614.90
7.0.10.0030.01214.89
7.0.00.0070.00914.90
5.6.400.0050.00815.02
5.6.390.0070.01015.24
5.6.380.0050.01015.30
5.6.370.0070.00815.31
5.6.360.0050.00815.21
5.6.350.0060.00615.05
5.6.340.0090.00815.28
5.6.330.0050.01315.07
5.6.320.0100.00515.11
5.6.310.0050.00715.13
5.6.300.0020.01215.04
5.6.290.0070.00815.06
5.6.280.0050.00415.15
5.6.270.0060.01015.01
5.6.260.0070.00815.05
5.6.250.0030.01115.07
5.6.240.0110.00514.99
5.6.230.0050.01015.32
5.6.220.0050.01015.15
5.6.210.0050.01115.27
5.6.200.0080.01115.29
5.6.190.0050.01015.01
5.6.180.0100.00414.94
5.6.170.0080.01015.15
5.6.160.0020.01115.03
5.6.150.0050.00815.00
5.6.140.0020.01114.94
5.6.130.0020.01315.15
5.6.120.0080.00515.04
5.6.110.0050.00714.99
5.6.100.0080.00515.22
5.6.90.0090.00914.93
5.6.80.0080.00815.02
5.6.70.0060.01015.01
5.6.60.0050.01115.05
5.6.50.0090.00915.19
5.6.40.0080.00815.10
5.6.30.0080.00615.10
5.6.20.0050.00815.02
5.6.10.0030.01214.96
5.6.00.0070.01014.99

preferences:
51.66 ms | 401 KiB | 5 Q