3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xrange($start, $limit, $step = 1) { for ($i = $start; $i <= $limit; $i += $step) { yield $i; } } $generator = xrange(1, 100); var_dump($generator); while ($generator->valid()) { print $generator->current() . PHP_EOL; $generator->next(); }

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.130.0080.01116.71
8.3.120.0060.00319.02
8.3.110.0040.00420.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0080.00316.50
8.3.70.0090.00616.58
8.3.60.0150.00616.88
8.3.50.0090.00917.27
8.3.40.0110.00718.90
8.3.30.0080.00818.84
8.3.20.0040.00420.33
8.3.10.0030.00522.09
8.3.00.0080.00023.65
8.2.250.0080.00017.07
8.2.240.0090.00018.63
8.2.230.0060.00322.58
8.2.220.0000.00937.54
8.2.210.0070.00026.77
8.2.200.0030.00616.75
8.2.190.0180.00318.16
8.2.180.0110.00718.17
8.2.170.0170.00318.59
8.2.160.0110.00422.96
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0040.00421.13
8.2.110.0090.00021.11
8.2.100.0090.00317.84
8.2.90.0050.00319.36
8.2.80.0050.00318.03
8.2.70.0000.00817.75
8.2.60.0040.00417.63
8.2.50.0030.00517.63
8.2.40.0030.00519.48
8.2.30.0020.00519.20
8.2.20.0040.00418.01
8.2.10.0000.00818.10
8.2.00.0000.00718.19
8.1.300.0120.00618.28
8.1.290.0030.00818.88
8.1.280.0070.00725.92
8.1.270.0080.00023.93
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00020.91
8.1.230.0090.00622.57
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0080.00017.48
8.1.190.0050.00317.66
8.1.180.0000.00918.10
8.1.170.0000.00818.96
8.1.160.0000.00718.82
8.1.150.0070.00020.02
8.1.140.0050.00219.63
8.1.130.0040.00417.54
8.1.120.0070.00518.24
8.1.110.0050.00317.39
8.1.100.0040.00417.43
8.1.90.0030.00517.48
8.1.80.0000.00717.46
8.1.70.0000.00717.37
8.1.60.0070.00317.49
8.1.50.0040.00417.39
8.1.40.0060.00317.58
8.1.30.0030.00517.68
8.1.20.0040.00417.62
8.1.10.0000.00817.45
8.1.00.0050.00317.29
8.0.300.0050.00218.77
8.0.290.0030.00516.63
8.0.280.0000.00818.56
8.0.270.0070.00016.70
8.0.260.0030.00316.79
8.0.250.0030.00316.99
8.0.240.0080.00016.99
8.0.230.0030.00516.82
8.0.220.0070.00016.81
8.0.210.0030.00316.87
8.0.200.0030.00416.85
8.0.190.0000.00816.82
8.0.180.0000.00716.96
8.0.170.0000.00716.88
8.0.160.0040.00416.93
8.0.150.0040.00416.82
8.0.140.0030.00616.84
8.0.130.0030.00313.29
8.0.120.0040.00416.95
8.0.110.0000.00816.90
8.0.100.0000.00716.84
8.0.90.0020.00616.86
8.0.80.0030.00716.87
8.0.70.0040.00416.88
8.0.60.0050.00316.86
8.0.50.0040.00316.84
8.0.30.0070.00817.05
8.0.20.0080.00917.29
8.0.10.0050.00217.00
8.0.00.0150.00716.88
7.4.330.0000.00515.55
7.4.320.0030.00316.65
7.4.300.0030.00316.41
7.4.290.0030.00316.41
7.4.280.0030.00316.65
7.4.270.0050.00316.43
7.4.260.0080.00016.59
7.4.250.0030.00516.58
7.4.240.0070.00016.51
7.4.230.0030.00316.54
7.4.220.0040.00416.63
7.4.210.0050.00916.62
7.4.200.0070.00016.59
7.4.190.0040.00416.55
7.4.180.0050.00216.58
7.4.160.0070.00516.59
7.4.150.0060.00516.80
7.4.140.0090.00817.40
7.4.130.0070.00616.37
7.4.120.0060.01216.52
7.4.110.0050.00616.62
7.4.100.0080.00416.45
7.4.90.0060.00616.41
7.4.80.0060.00517.46
7.4.70.0070.00416.54
7.4.60.0020.00916.45
7.4.50.0040.00516.40
7.4.40.0040.00616.38
7.4.30.0060.00416.47
7.4.20.0060.00216.36
7.4.10.0030.00516.60
7.4.00.0070.00515.62
7.3.330.0000.00613.24
7.3.320.0060.00013.38
7.3.310.0000.00716.27
7.3.300.0030.00316.25
7.3.290.0050.00216.24
7.3.280.0070.00816.32
7.3.270.0050.00616.68
7.3.260.0080.00716.41
7.3.250.0050.00816.41
7.3.240.0080.00616.38
7.3.230.0030.00716.28
7.3.220.0030.00416.25
7.3.210.0030.00716.43
7.3.200.0080.00216.37
7.3.190.0040.00616.40
7.3.180.0060.00416.44
7.3.170.0080.00216.40
7.3.160.0040.00716.29
7.3.150.0060.00216.18
7.3.140.0000.00716.29
7.3.130.0020.00516.34
7.3.120.0050.00715.51
7.3.110.0070.00515.48
7.3.100.0050.00815.55
7.3.90.0070.00615.40
7.3.80.0040.00715.36
7.3.70.0040.00715.36
7.3.60.0050.00515.38
7.3.50.0080.00515.24
7.3.40.0050.00715.34
7.3.30.0070.00515.27
7.3.20.0250.00615.77
7.3.10.0270.00615.75
7.3.00.0220.00715.74
7.2.340.0040.00416.27
7.2.330.0080.00416.49
7.2.320.0070.00416.40
7.2.310.0050.00616.43
7.2.300.0050.00916.42
7.2.290.0030.00816.37
7.2.280.0050.00316.38
7.2.270.0030.00516.29
7.2.260.0040.00416.36
7.2.250.0070.00615.63
7.2.240.0030.01015.70
7.2.230.0060.00515.75
7.2.220.0040.00915.50
7.2.210.0060.00615.48
7.2.200.0050.00715.49
7.2.190.0070.00615.50
7.2.180.0060.00815.43
7.2.170.0060.00815.35
7.2.160.0050.00815.42
7.2.150.0230.00715.97
7.2.140.0170.00815.90
7.2.130.0270.00715.85
7.2.120.0210.00715.84
7.2.110.0260.00615.87
7.2.100.0240.00715.87
7.2.90.0270.00815.82
7.2.80.0230.00615.84
7.2.70.0220.00815.81
7.2.60.0200.00815.94
7.2.50.0210.00815.83
7.2.40.0220.00715.86
7.2.30.0230.00815.81
7.2.20.0240.00815.78
7.2.10.0220.00915.77
7.2.00.0300.00815.94
7.1.330.0030.00715.68
7.1.320.0070.00515.26
7.1.310.0050.00815.18
7.1.300.0040.00815.23
7.1.290.0050.00815.14
7.1.280.0080.00515.16
7.1.270.0070.00715.23
7.1.260.0050.01015.17
7.1.250.0230.00914.77
7.1.240.0310.00714.47
7.1.230.0280.00714.58
7.1.220.0320.00714.54
7.1.210.0280.00714.54
7.1.200.0260.00614.68
7.1.190.0300.00614.51
7.1.180.0280.00814.56
7.1.170.0260.00814.62
7.1.160.0250.00814.60
7.1.150.0260.00714.62
7.1.140.0260.00714.65
7.1.130.0280.00714.68
7.1.120.0280.00814.62
7.1.110.0260.00814.59
7.1.100.0390.00614.93
7.1.90.0250.00814.89
7.1.80.0280.00714.89
7.1.70.0260.00614.76
7.1.60.0290.00718.95
7.1.50.0280.00918.99
7.1.40.0290.00818.90
7.1.30.0260.00918.93
7.1.20.0230.00818.86
7.1.10.0230.00814.78
7.1.00.0350.00714.76
7.0.330.0360.00514.04
7.0.320.0390.00414.01
7.0.310.0310.00814.02
7.0.300.0320.00814.15
7.0.290.0300.00914.16
7.0.280.0440.00714.11
7.0.270.0280.00814.16
7.0.260.0320.00914.13
7.0.250.0280.00914.22
7.0.240.0280.00814.54
7.0.230.0280.00814.49
7.0.220.0270.00814.47
7.0.210.0270.00714.35
7.0.200.0290.00714.37
7.0.190.0310.00614.38
7.0.180.0290.00714.33
7.0.170.0250.00714.29
7.0.160.0270.00714.35
7.0.150.0240.00614.29
7.0.140.0240.00814.37
7.0.130.0390.00814.33
7.0.120.0270.00814.59
7.0.110.0280.00814.46
7.0.100.0270.00814.50
7.0.90.0230.00914.48
7.0.80.0230.01014.35
7.0.70.0310.00914.37
7.0.60.0290.00814.28
7.0.50.0280.00514.42
7.0.40.0270.00814.37
7.0.30.0290.00714.35
7.0.20.0280.00814.23
7.0.10.0280.00814.42
7.0.00.0260.00714.38
5.6.400.0060.00914.97
5.6.390.0100.00514.95
5.6.380.0090.00814.62
5.6.370.0100.00814.97
5.6.360.0080.01214.96
5.6.350.0100.00715.02
5.6.340.0110.00815.03
5.6.330.0120.00814.85
5.6.320.0110.00614.96
5.6.310.0110.00715.06
5.6.300.0100.01615.49
5.6.290.0100.01415.58
5.6.280.0100.01615.52
5.6.270.0100.01515.57
5.6.260.0100.01515.53
5.6.250.0110.01515.59
5.6.240.0110.01715.56
5.6.230.0130.01415.56
5.6.220.0120.01415.51
5.6.210.0080.01615.55
5.6.200.0150.01315.54
5.6.190.0110.01615.63
5.6.180.0120.01315.53
5.6.170.0130.01215.66
5.6.160.0100.01415.53
5.6.150.0120.01515.58
5.6.140.0100.01715.64
5.6.130.0120.01315.53
5.6.120.0100.01715.57
5.6.110.0120.01615.60
5.6.100.0130.01315.49
5.6.90.0100.01615.52
5.6.80.0110.01315.36
5.6.70.0130.01515.51
5.6.60.0100.01715.45
5.6.50.0120.01215.33
5.6.40.0110.01415.34
5.6.30.0090.01515.43
5.6.20.0130.01315.34
5.6.10.0090.01515.35
5.6.00.0110.01515.49

preferences:
28.77 ms | 403 KiB | 5 Q