3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Source: https://bugs.php.net/bug.php?id=70237 ini_set('opcache.enable_cli', true); if ((int) ini_get('opcache.enable_cli') !== 1) { throw new Exception('Opcode cache must be enabled on CLI environment'); } function neverUsed() { $bool = false; while ($bool) { }; // Same with: do { } while ($bool); } echo "OK";

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.40.0150.00618.83
8.3.30.0180.00018.76
8.3.20.0000.00818.81
8.3.10.0050.00319.91
8.3.00.0040.00420.88
8.2.170.0120.00322.96
8.2.160.0110.00319.04
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00321.05
8.2.120.0040.00426.35
8.2.110.0030.00720.39
8.2.100.0040.00817.72
8.2.90.0000.00819.23
8.2.80.0050.00317.97
8.2.70.0050.00317.62
8.2.60.0070.00817.54
8.2.50.0070.00318.10
8.2.40.0000.00920.60
8.2.30.0040.00420.52
8.2.20.0050.00217.59
8.2.10.0040.00418.09
8.2.00.0040.00418.09
8.1.270.0090.00923.99
8.1.260.0050.00328.09
8.1.250.0000.00728.09
8.1.240.0030.00523.96
8.1.230.0110.00017.51
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0040.00418.48
8.1.160.0040.00418.88
8.1.150.0030.00318.90
8.1.140.0070.00019.53
8.1.130.0000.00717.67
8.1.120.0000.00717.41
8.1.110.0040.00417.43
8.1.100.0080.00017.45
8.1.90.0000.00817.35
8.1.80.0070.00017.30
8.1.70.0000.00717.36
8.1.60.0000.00817.54
8.1.50.0040.00417.54
8.1.40.0080.00017.37
8.1.30.0030.00517.48
8.1.20.0040.00417.49
8.1.10.0070.00017.35
8.1.00.0030.00617.50
8.0.300.0070.00018.77
8.0.290.0050.00216.63
8.0.280.0040.00418.28
8.0.270.0030.00317.09
8.0.260.0060.00317.26
8.0.250.0040.00416.91
8.0.240.0000.00716.96
8.0.230.0100.00016.96
8.0.220.0040.00416.94
8.0.210.0030.00316.88
8.0.200.0030.00316.98
8.0.190.0070.00016.88
8.0.180.0000.00816.83
8.0.170.0000.00816.91
8.0.160.0000.00916.92
8.0.150.0040.00416.84
8.0.140.0070.00016.84
8.0.130.0050.00013.48
8.0.120.0030.00516.92
8.0.110.0030.00616.80
8.0.100.0070.00016.95
8.0.90.0000.00716.80
8.0.80.0070.01016.91
8.0.70.0000.00717.00
8.0.60.0040.00417.04
8.0.50.0070.00016.87
8.0.30.0120.00817.17
8.0.20.0100.00817.40
8.0.10.0000.00717.15
8.0.00.0100.01116.86
7.4.330.0000.00515.08
7.4.320.0060.00016.46
7.4.300.0060.00016.44
7.4.290.0050.00516.56
7.4.280.0000.00816.34
7.4.270.0040.00416.47
7.4.260.0030.00316.39
7.4.250.0000.00816.43
7.4.240.0070.00016.41
7.4.230.0000.00816.54
7.4.220.0030.01516.48
7.4.210.0070.00716.49
7.4.200.0040.00416.66
7.4.160.0060.00916.34
7.4.150.0030.01617.40
7.4.140.0150.00617.86
7.4.130.0100.00916.42
7.4.120.0120.00616.56
7.4.110.0070.01016.38
7.4.100.0110.01116.43
7.4.90.0140.00416.46
7.4.80.0120.00619.39
7.4.70.0120.00316.40
7.4.60.0130.00916.59
7.4.50.0090.00516.57
7.4.40.0090.00616.33
7.4.30.0090.01316.26
7.4.00.0100.00815.04
7.3.330.0000.00713.29
7.3.320.0000.00613.31
7.3.310.0070.00016.36
7.3.300.0000.00716.27
7.3.290.0090.00716.29
7.3.280.0090.00816.24
7.3.270.0120.00617.40
7.3.260.0100.00716.49
7.3.250.0110.00616.50
7.3.240.0060.01016.56
7.3.230.0170.00016.39
7.3.210.0060.00916.44
7.3.200.0070.00916.42
7.3.190.0100.01316.54
7.3.180.0060.00916.37
7.3.170.0080.00816.61
7.3.160.0070.01316.49
7.3.120.0080.00414.66
7.3.110.0100.00714.82
7.3.100.0150.00314.96
7.3.90.0090.00614.89
7.3.80.0100.00714.91
7.3.70.0060.00614.73
7.3.60.0070.01014.53
7.3.50.0070.01014.68
7.3.40.0030.01614.80
7.3.30.0060.00614.71
7.3.20.0070.00716.36
7.3.10.0030.01316.59
7.3.00.0090.00016.38
7.2.330.0090.00916.73
7.2.320.0120.00416.68
7.2.310.0140.01016.35
7.2.300.0130.01016.70
7.2.290.0100.00616.44
7.2.250.0040.01514.98
7.2.240.0070.01314.92
7.2.230.0100.01014.89
7.2.220.0030.01414.81
7.2.210.0040.01515.25
7.2.200.0100.00715.09
7.2.190.0120.00314.88
7.2.180.0070.01315.14
7.2.170.0100.00315.09
7.2.60.0070.00717.04
7.2.00.0000.01219.43
7.1.330.0080.00415.57
7.1.320.0090.00315.70
7.1.310.0030.01415.61
7.1.300.0120.00415.65
7.1.290.0030.01415.26
7.1.280.0080.00415.72
7.1.270.0040.01015.54
7.1.260.0060.01015.73
7.1.200.0060.00715.48
7.1.100.0000.01217.90
7.1.70.0000.00717.29
7.1.60.0100.01420.41
7.1.50.0110.01416.89
7.1.00.0030.07322.45
7.0.200.0000.01016.46
7.0.60.0170.08021.79
7.0.50.0000.04317.85
7.0.40.0070.06020.43
7.0.30.0370.06320.20
7.0.20.0370.06320.35
7.0.10.0500.04320.33
7.0.00.0400.06020.33
5.6.280.0000.07721.10
5.6.210.0070.08020.44
5.6.200.0000.06318.22
5.6.190.0330.05721.12
5.6.180.0270.06021.02
5.6.170.0330.06021.17
5.6.160.0270.06021.05
5.6.150.0500.04321.20
5.6.140.0130.05721.02
5.6.130.0330.05721.19
5.6.120.0100.06721.16
5.6.110.0030.06721.02
5.6.100.0370.05721.15
5.6.90.0470.04721.14
5.6.80.0370.05320.48
5.6.70.0400.07020.40
5.6.60.0270.06020.47
5.6.50.0230.05720.33
5.6.40.0300.05320.37
5.6.30.0300.05720.50
5.6.20.0170.05020.30
5.6.10.0230.05320.44
5.6.00.0200.05020.39
5.5.350.0230.07720.43
5.5.340.0070.05317.99
5.5.330.0170.06320.87
5.5.320.0300.05720.84
5.5.310.0200.05320.85
5.5.300.0030.06320.87
5.5.290.0470.05320.85
5.5.280.0070.06321.01
5.5.270.0000.06720.88
5.5.260.0170.06720.82
5.5.250.0370.06020.82
5.5.240.0400.05020.19
5.5.230.0400.05320.39
5.5.220.0400.04320.25
5.5.210.0300.05320.37
5.5.200.0200.06020.36
5.5.190.0370.05320.21
5.5.180.0430.05020.20
5.5.160.0170.05020.34
5.5.150.0100.06020.21
5.5.140.0270.04320.14
5.5.130.0130.05320.23
5.5.120.0130.05320.27
5.5.110.0170.05020.36
5.5.100.0070.06320.26
5.5.90.0200.04720.11
5.5.80.0170.06020.06
5.5.70.0100.05720.03
5.5.60.0170.05020.05
5.5.50.0100.06320.14
5.5.40.0130.05720.02
5.5.30.0200.05019.93
5.5.20.0170.05320.10
5.5.10.0200.05020.20
5.5.00.0230.05020.15

preferences:
58.77 ms | 400 KiB | 5 Q