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());

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.0180.00418.30
8.3.50.0080.00616.47
8.3.40.0070.00718.64
8.3.30.0150.00318.89
8.3.20.0070.00020.39
8.3.10.0040.00421.72
8.3.00.0000.00817.72
8.2.180.0150.00716.50
8.2.170.0070.00722.96
8.2.160.0100.00320.43
8.2.150.0000.00824.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0000.00720.92
8.2.110.0060.00621.02
8.2.100.0050.00518.22
8.2.90.0080.00019.16
8.2.80.0040.00417.97
8.2.70.0110.00017.63
8.2.60.0000.00817.80
8.2.50.0090.00018.16
8.2.40.0000.00822.32
8.2.30.0040.00419.35
8.2.20.0040.00718.12
8.2.10.0070.00018.05
8.2.00.0040.00418.11
8.1.280.0120.00625.92
8.1.270.0000.00824.66
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0070.00323.72
8.1.230.0080.00417.42
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0060.00318.64
8.1.160.0000.00719.00
8.1.150.0070.00018.88
8.1.140.0040.00419.56
8.1.130.0030.00518.87
8.1.120.0070.00017.41
8.1.110.0040.00417.48
8.1.100.0050.00217.51
8.1.90.0040.00417.35
8.1.80.0000.00817.46
8.1.70.0000.00717.44
8.1.60.0040.00417.54
8.1.50.0070.00017.46
8.1.40.0040.00417.39
8.1.30.0050.00517.65
8.1.20.0030.00617.54
8.1.10.0030.00517.34
8.1.00.0000.00717.32
8.0.300.0000.00718.77
8.0.290.0090.00016.75
8.0.280.0080.00018.40
8.0.270.0000.00917.31
8.0.260.0030.00316.92
8.0.250.0030.00317.05
8.0.240.0060.00317.01
8.0.230.0040.00416.96
8.0.220.0000.00816.96
8.0.210.0000.00716.93
8.0.200.0060.00016.89
8.0.190.0030.00617.01
8.0.180.0000.00816.98
8.0.170.0000.00716.86
8.0.160.0000.00716.84
8.0.150.0040.00416.94
8.0.140.0080.00016.88
8.0.130.0000.00513.38
8.0.120.0080.00016.90
8.0.110.0030.00516.78
8.0.100.0000.00716.74
8.0.90.0050.00316.99
8.0.80.0140.00416.93
8.0.70.0000.00716.99
8.0.60.0040.00416.98
8.0.50.0000.00716.76
8.0.30.0100.01017.07
8.0.20.0110.00717.40
8.0.10.0040.00417.06
8.0.00.0140.00316.71
7.4.330.0000.00515.55
7.4.320.0000.00716.50
7.4.300.0060.00016.50
7.4.290.0040.00416.48
7.4.280.0000.00716.48
7.4.270.0040.00416.58
7.4.260.0000.00716.45
7.4.250.0050.00216.58
7.4.240.0050.00216.54
7.4.230.0070.00016.66
7.4.220.0150.00416.70
7.4.210.0100.00516.60
7.4.200.0000.00716.47
7.4.160.0050.01116.54
7.4.150.0100.00917.40
7.4.140.0140.00617.86
7.4.130.0030.02016.52
7.4.120.0110.01016.44
7.4.110.0100.00716.54
7.4.100.0150.00416.67
7.4.90.0060.01116.55
7.4.80.0030.01319.39
7.4.70.0090.00916.65
7.4.60.0120.00316.66
7.4.50.0100.00716.45
7.4.40.0080.00816.61
7.4.30.0220.00016.44
7.4.00.0120.00415.10
7.3.330.0030.00313.11
7.3.320.0030.00313.14
7.3.310.0000.00716.19
7.3.300.0060.00016.17
7.3.290.0030.00316.28
7.3.280.0080.00816.27
7.3.270.0030.01317.40
7.3.260.0100.00916.34
7.3.250.0070.01216.40
7.3.240.0110.00516.43
7.3.230.0130.00516.53
7.3.210.0110.00516.32
7.3.200.0100.00616.43
7.3.190.0080.00816.46
7.3.180.0100.00616.52
7.3.170.0060.01016.53
7.3.160.0030.01316.37
7.3.10.0060.00616.64
7.3.00.0080.00616.79
7.2.330.0070.01016.72
7.2.320.0060.01216.70
7.2.310.0140.00316.32
7.2.300.0130.00916.66
7.2.290.0130.00316.54
7.2.130.0090.00316.85
7.2.120.0030.00716.58
7.2.110.0060.00316.86
7.2.100.0090.00616.91
7.2.90.0000.01516.90
7.2.80.0080.00516.59
7.2.70.0000.01217.01
7.2.60.0060.01116.94
7.2.50.0030.01016.64
7.2.40.0030.01016.52
7.2.30.0100.00316.88
7.2.20.0080.00616.89
7.2.10.0100.00316.66
7.2.00.0130.00316.95
7.1.250.0100.00715.69
7.1.200.0060.00915.63
7.1.70.0120.00616.79
7.1.60.0220.01235.10
7.1.50.0390.00834.42
7.1.40.0240.01534.32
7.1.30.0140.02434.30
7.1.20.0230.01634.48
7.1.10.0070.01016.40
7.1.00.0110.00716.54
7.0.200.0090.01216.67
7.0.190.0060.01116.51
7.0.180.0100.00816.22
7.0.170.0080.01016.24
7.0.160.0010.02616.30
7.0.150.0030.01416.06
7.0.140.0100.00816.20
7.0.130.0030.01516.11
7.0.120.0160.01016.26
7.0.110.0070.01116.05
7.0.100.0090.00916.09
7.0.90.0060.01116.08
7.0.80.0040.01316.48
7.0.70.0080.01116.24
7.0.60.0090.00915.91
7.0.50.0060.01215.99
7.0.40.0090.00916.52
7.0.30.0060.01216.36
7.0.20.0190.00916.23
7.0.10.0060.01116.19
7.0.00.0080.01016.18

preferences:
33.76 ms | 400 KiB | 5 Q