3v4l.org

run code in 300+ PHP versions simultaneously
<? ini_set('memory_limit', '6400000M'); ini_set('display_errors', 1); error_reporting(E_ALL); $sec1 = 2122396090000914537739 - 2122334690000166340863; echo "$sec1"; echo "<br>"; // array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) foreach (range(2122334690000166340863, 2122396090000914537739) as $number) { echo $number,'<br />'; } ?>

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.70.0160.00618.31
8.3.60.0070.00716.63
8.3.50.0040.01421.06
8.3.40.0060.00918.70
8.3.30.0090.00618.54
8.3.20.0040.00420.39
8.3.10.0040.00423.48
8.3.00.0050.00319.68
8.2.190.0110.00716.58
8.2.180.0070.00716.50
8.2.170.0150.00622.96
8.2.160.0130.00720.37
8.2.150.0080.00024.18
8.2.140.0080.00824.66
8.2.130.0040.00426.16
8.2.120.0030.00717.49
8.2.110.0000.01022.09
8.2.100.0080.00417.50
8.2.90.0110.00019.07
8.2.80.0050.00317.97
8.2.70.0030.00617.36
8.2.60.0060.00317.91
8.2.50.0000.00818.07
8.2.40.0040.00419.52
8.2.30.0040.00419.64
8.2.20.0040.00417.46
8.2.10.0020.00517.80
8.2.00.0040.00417.92
8.1.280.0110.00725.92
8.1.270.0030.00520.39
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.52
8.1.230.0040.00817.42
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0050.00218.10
8.1.170.0000.00918.51
8.1.160.0000.00722.00
8.1.150.0040.00418.75
8.1.140.0040.00417.27
8.1.130.0070.00017.50
8.1.120.0000.00717.32
8.1.110.0060.00317.16
8.1.100.0000.00717.17
8.1.90.0000.00717.37
8.1.80.0040.00417.27
8.1.70.0030.00317.20
8.1.60.0060.00317.46
8.1.50.0030.00617.37
8.1.40.0030.00517.35
8.1.30.0070.00417.53
8.1.20.0000.00817.48
8.1.10.0050.00317.36
8.1.00.0030.00517.37
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.35
8.0.270.0020.00417.10
8.0.260.0030.00617.18
8.0.250.0070.00016.71
8.0.240.0030.00316.78
8.0.230.0040.00416.80
8.0.220.0000.00716.80
8.0.210.0000.00816.80
8.0.200.0000.00616.86
8.0.190.0030.00616.79
8.0.180.0000.00716.66
8.0.170.0000.00716.84
8.0.160.0040.00416.78
8.0.150.0000.00816.69
8.0.140.0000.00716.60
8.0.130.0030.00313.31
8.0.120.0040.00416.63
8.0.110.0030.00316.61
8.0.100.0030.00416.64
8.0.90.0000.00716.77
8.0.80.0110.00416.77
8.0.70.0040.00416.72
8.0.60.0050.00316.63
8.0.50.0040.00416.82
8.0.30.0080.01017.13
8.0.20.0130.00617.40
8.0.10.0030.00516.75
8.0.00.0090.01116.74
7.4.330.0050.00015.08
7.4.320.0060.00016.31
7.4.300.0000.00616.49
7.4.290.0000.00816.34
7.4.280.0000.00816.42
7.4.270.0070.00016.52
7.4.260.0020.00516.32
7.4.250.0000.00716.39
7.4.240.0030.00416.42
7.4.230.0000.00716.18
7.4.220.0120.00616.41
7.4.210.0070.01016.49
7.4.200.0070.00016.45
7.4.160.0090.00616.51
7.4.150.0160.00317.40
7.4.140.0120.00817.86
7.4.130.0090.01216.40
7.4.120.0090.00816.39
7.4.110.0140.00316.17
7.4.100.0090.01516.38
7.4.90.0120.00716.27
7.4.80.0060.01219.39
7.4.70.0090.01316.33
7.4.60.0040.01516.41
7.4.50.0030.00516.37
7.4.40.0090.00816.45
7.4.30.0090.00916.29
7.4.00.0070.00714.89
7.3.330.0060.00013.10
7.3.320.0070.00012.99
7.3.310.0030.00316.13
7.3.300.0070.00016.13
7.3.290.0030.00316.08
7.3.280.0100.00816.13
7.3.270.0170.00717.40
7.3.260.0130.01116.36
7.3.250.0110.00616.31
7.3.240.0070.01116.46
7.3.230.0100.01016.41
7.3.210.0130.00316.33
7.3.200.0080.00816.47
7.3.190.0030.01316.17
7.3.180.0090.00616.54
7.3.170.0030.01316.52
7.3.160.0130.00316.33
7.2.330.0140.00916.29
7.2.320.0110.00616.36
7.2.310.0050.01116.61
7.2.300.0070.01016.36
7.2.290.0130.00916.42
7.2.120.0080.00816.60
7.2.110.0030.01016.51
7.2.100.0110.00516.54
7.2.90.0080.00816.48
7.2.80.0120.00816.57
7.2.70.0110.00616.81
7.2.60.0050.01116.88
7.2.50.0000.01716.61
7.2.40.0120.00516.94
7.2.30.0100.00516.52
7.2.20.0180.00016.63
7.2.10.0200.00016.81
7.2.00.0110.00618.14
7.1.240.0150.00015.35
7.1.230.0090.01215.84
7.1.220.0130.00315.72
7.1.210.0080.00915.68
7.1.200.0070.00715.71
7.1.190.0120.00315.55
7.1.180.0090.00515.88
7.1.170.0050.00915.45
7.1.160.0090.00815.52
7.1.150.0080.00515.69
7.1.140.0120.00415.74
7.1.130.0080.00815.73
7.1.120.0100.00315.68
7.1.110.0120.00415.74
7.1.100.0120.00216.78
7.1.90.0150.00015.63
7.1.80.0120.00615.56
7.1.70.0020.01016.35
7.1.60.0110.01017.23
7.1.50.0190.00325.35
7.1.40.0100.00315.36
7.1.30.0070.00815.70
7.1.20.0060.00615.85
7.1.10.0090.00515.61
7.1.00.0090.03819.12
7.0.320.0130.00715.07
7.0.310.0170.00015.46
7.0.300.0160.00015.38
7.0.290.0120.00415.13
7.0.280.0080.00815.28
7.0.270.0090.00615.21
7.0.260.0100.00515.55
7.0.250.0120.00915.33
7.0.240.0080.00815.43
7.0.230.0130.00515.28
7.0.220.0130.00315.44
7.0.210.0150.00015.09
7.0.200.0040.00816.13
7.0.190.0090.00515.29
7.0.180.0120.00415.30
7.0.170.0100.00715.27
7.0.160.0100.00015.30
7.0.150.0090.00615.30
7.0.140.0120.00215.58
7.0.130.0130.00015.28
7.0.120.0060.01015.46
7.0.110.0060.00715.20
7.0.100.0110.00615.30
7.0.90.0120.00315.08
7.0.80.0030.01115.10
7.0.70.0110.00015.39
7.0.60.0100.04318.55
7.0.50.0060.03216.44
7.0.40.0090.04116.81
7.0.30.0180.02216.65
7.0.20.0160.03316.69
7.0.10.0090.04516.71
7.0.00.0070.03316.69
5.6.380.1060.140265.33
5.6.370.0990.149265.55
5.6.360.0800.163265.34
5.6.350.1020.141265.73
5.6.340.0780.163265.66
5.6.330.0840.167265.37
5.6.320.1030.153265.62
5.6.310.0890.154265.32
5.6.300.1240.124265.47
5.6.290.0930.149265.45
5.6.280.0900.170268.63
5.6.270.0820.167265.62
5.6.260.1070.150265.43
5.6.250.0890.154265.46
5.6.240.1250.135265.44
5.6.230.1020.141265.29
5.6.220.1080.141265.51
5.6.210.4560.9811698.07
5.6.200.5160.9211905.46
5.6.190.5080.9361865.35
5.6.180.8580.5511095.15
5.6.170.6210.7921531.00
5.6.160.5290.9111807.35
5.6.150.5070.9391728.97
5.6.140.5050.9431810.42
5.6.130.5200.9191808.54
5.6.120.5260.9061829.20
5.6.110.5000.9361787.58
5.6.100.4830.9481793.90
5.6.90.4960.9421910.35
5.6.80.4630.9661846.03
5.6.70.1130.120265.40
5.6.60.1090.126265.18
5.6.50.0800.150265.28
5.6.40.0830.147265.43
5.6.30.1040.147265.27
5.6.20.1060.142265.38
5.6.10.0770.153265.31
5.6.00.0900.140265.13
5.5.380.0990.145263.06
5.5.370.1250.122263.04
5.5.360.0980.148263.16
5.5.351.0500.343732.12
5.5.340.5100.9301800.84
5.5.330.4930.9561868.51
5.5.320.6210.8071455.30
5.5.310.5820.8361614.34
5.5.300.5260.9301799.87
5.5.290.5360.9071865.72
5.5.280.5100.9231883.17
5.5.270.5130.9251795.75
5.5.260.4960.9341794.17
5.5.250.4720.9611890.80
5.5.241.0900.290572.89
5.5.230.1250.122263.03
5.5.220.0940.144262.61
5.5.210.1190.109262.69
5.5.200.0650.160262.96
5.5.190.0700.156262.95
5.5.180.0960.148262.90
5.5.170.0960.136265.38
5.5.160.0880.143263.03
5.5.150.0940.151263.02
5.5.140.1040.144262.67
5.5.130.0980.128262.79
5.5.120.0940.141262.74
5.5.110.0790.149262.49
5.5.100.0920.136262.80
5.5.90.0890.135262.46
5.5.80.0950.144262.70
5.5.70.0830.162262.92
5.5.60.0770.148262.68
5.5.50.0900.137262.82
5.5.40.1000.133263.07
5.5.30.0900.136262.71
5.5.20.1010.140262.49
5.5.10.0970.134262.88
5.5.00.0830.150262.88
5.4.450.6020.8071143.94
5.4.440.6150.8051200.10
5.4.430.6540.7411079.52
5.4.420.6410.7621177.77
5.4.410.5930.8071138.71
5.4.400.6120.7991210.87
5.4.390.6950.7111066.30
5.4.380.6060.7971182.25
5.4.370.6400.7711208.38
5.4.360.6160.7951207.28
5.4.350.6390.7691206.80
5.4.340.6100.7901142.90
5.4.330.0980.128262.81
5.4.320.6300.7901193.65
5.4.310.6430.7611178.39
5.4.300.6230.7901228.09
5.4.290.6760.714994.28
5.4.280.6190.7921214.19
5.4.270.6300.7781192.91
5.4.260.6240.8161217.15
5.4.250.6570.7561202.05
5.4.240.6380.7681195.97
5.4.230.6360.7691125.87
5.4.220.5890.8211132.26
5.4.210.5980.8111195.61
5.4.200.6050.8021113.85
5.4.190.6060.8061148.72
5.4.180.6100.8101159.19
5.4.170.6260.7931200.48
5.4.160.6120.8051210.93
5.4.150.6190.7971209.25
5.4.140.6120.7941136.93
5.4.130.6210.7871163.31
5.4.120.6050.8011157.67
5.4.110.6140.7851117.83
5.4.100.5870.8151150.67
5.4.90.6500.7581182.26
5.4.80.5980.8121147.82
5.4.70.5470.8631579.96
5.4.60.5460.8511562.08
5.4.50.4670.9351662.64
5.4.40.5420.8691651.86
5.4.30.5120.8951655.23
5.4.20.5750.8271498.52
5.4.10.0900.136262.77
5.4.00.0770.163262.93

preferences:
55.06 ms | 401 KiB | 5 Q