3v4l.org

run code in 300+ PHP versions simultaneously
<?php $total = 0; for ($i = 1; $i <= 10; $i++) { for ($j = 10; $j >=1 ; $j++) { $total = $i + $j; echo "$i + $j = $total"; break; } } $total = $total / 2; print $total."<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.60.0110.00716.50
8.3.50.0140.00718.27
8.3.40.0110.01118.64
8.3.30.0000.01418.57
8.3.20.0040.00421.82
8.3.10.0040.00421.65
8.3.00.0120.00319.56
8.2.180.0120.00618.41
8.2.170.0150.00022.96
8.2.160.0130.00720.37
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00019.31
8.2.120.0060.00326.35
8.2.110.0040.00420.34
8.2.100.0080.00317.66
8.2.90.0040.00417.72
8.2.80.0060.00319.36
8.2.70.0040.00418.05
8.2.60.0070.00017.93
8.2.50.0040.00418.22
8.2.40.0070.00020.27
8.2.30.0000.00819.48
8.2.20.0030.00518.05
8.2.10.0040.00418.12
8.2.00.0000.00818.08
8.1.280.0080.00625.92
8.1.270.0070.00022.14
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00622.45
8.1.230.0050.00522.67
8.1.220.0000.00717.79
8.1.210.0050.00320.34
8.1.200.0000.00917.36
8.1.190.0030.00517.13
8.1.180.0040.00418.10
8.1.170.0040.00418.68
8.1.160.0070.00018.77
8.1.150.0040.00419.07
8.1.140.0070.00017.71
8.1.130.0030.00319.03
8.1.120.0030.00717.41
8.1.110.0000.00817.27
8.1.100.0070.00017.43
8.1.90.0000.00717.35
8.1.80.0030.00617.35
8.1.70.0040.00417.43
8.1.60.0000.01017.55
8.1.50.0090.00017.52
8.1.40.0030.00617.27
8.1.30.0040.00417.48
8.1.20.0030.00617.47
8.1.10.0060.00317.55
8.1.00.0000.00817.46
8.0.300.0020.00521.95
8.0.290.0070.00016.63
8.0.280.0000.00718.31
8.0.270.0030.00317.19
8.0.260.0000.00617.22
8.0.250.0000.00716.88
8.0.240.0000.00816.82
8.0.230.0050.00316.96
8.0.220.0040.00416.88
8.0.210.0070.00016.88
8.0.200.0030.00716.84
8.0.190.0030.00416.84
8.0.180.0000.00816.84
8.0.170.0040.00716.93
8.0.160.0030.00816.89
8.0.150.0000.00716.82
8.0.140.0030.00316.91
8.0.130.0000.00713.32
8.0.120.0040.00416.80
8.0.110.0000.00716.85
8.0.100.0050.00316.83
8.0.90.0040.00416.93
8.0.80.0110.00416.92
8.0.70.0000.00816.76
8.0.60.0000.00716.91
8.0.50.0040.00416.87
8.0.30.0120.00717.08
8.0.20.0140.00617.40
8.0.10.0070.00016.88
8.0.00.0120.00616.71
7.4.330.0060.00015.55
7.4.320.0000.00616.45
7.4.300.0030.00316.33
7.4.290.0030.00316.44
7.4.280.0040.00416.57
7.4.270.0070.00016.61
7.4.260.0030.00316.41
7.4.250.0040.00416.39
7.4.240.0030.00316.52
7.4.230.0070.00016.34
7.4.220.0000.00716.56
7.4.210.0020.01416.60
7.4.200.0000.00716.55
7.4.160.0060.01416.40
7.4.140.0070.01117.86
7.4.130.0070.01116.32
7.4.120.0130.00816.47
7.4.110.0130.00916.39
7.4.100.0180.00016.38
7.4.90.0070.01016.49
7.4.80.0090.01319.39
7.4.70.0110.00616.56
7.4.60.0070.01416.55
7.4.50.0070.00716.55
7.4.40.0100.00616.43
7.4.10.0030.01614.72
7.4.00.0060.00814.88
7.3.330.0000.00513.10
7.3.320.0060.00013.12
7.3.310.0040.00416.15
7.3.300.0070.00016.23
7.3.290.0040.00416.33
7.3.280.0100.00516.35
7.3.260.0120.00716.43
7.3.240.0110.00716.38
7.3.230.0100.00716.33
7.3.210.0130.01216.40
7.3.200.0090.00916.34
7.3.190.0070.01016.52
7.3.180.0060.00916.34
7.3.170.0110.00716.39
7.3.160.0000.01616.46
7.3.130.0060.01214.90
7.3.120.0160.00014.93
7.3.110.0100.01014.69
7.3.100.0070.00714.65
7.3.90.0030.00714.96
7.3.80.0080.00314.69
7.3.70.0040.01114.52
7.3.60.0000.01814.91
7.3.50.0070.00714.83
7.3.40.0100.00614.54
7.3.30.0060.00914.72
7.3.20.0070.00716.69
7.3.10.0070.00716.53
7.3.00.0100.00016.80
7.2.330.0100.01016.57
7.2.320.0070.01016.57
7.2.310.0000.01616.30
7.2.300.0130.00916.61
7.2.290.0120.00916.43
7.2.260.0100.00715.11
7.2.250.0070.00715.03
7.2.240.0030.00915.11
7.2.230.0080.00414.94
7.2.220.0070.01015.24
7.2.210.0000.01414.68
7.2.200.0000.01515.03
7.2.190.0060.00914.83
7.2.180.0060.00315.01
7.2.170.0030.01015.02
7.2.160.0040.00714.93
7.2.150.0030.01316.81
7.2.140.0090.00616.94
7.2.130.0100.00716.82
7.2.120.0030.00816.69
7.2.110.0030.00716.82
7.2.100.0110.00016.91
7.2.90.0140.00416.85
7.2.80.0070.00717.04
7.2.70.0090.00616.73
7.2.60.0030.01216.74
7.2.50.0090.00516.80
7.2.40.0090.01118.19
7.2.30.0070.01018.26
7.2.20.0080.01018.20
7.2.10.0050.01418.30
7.2.00.0080.01218.39
7.1.330.0060.00915.73
7.1.320.0100.00715.70
7.1.310.0030.00615.85
7.1.300.0030.01016.00
7.1.290.0090.00315.77
7.1.280.0070.00715.84
7.1.270.0040.01215.77
7.1.260.0060.00315.61
7.1.250.0160.00015.70
7.1.240.0060.00915.95
7.1.230.0000.01215.70
7.1.220.0000.00915.58
7.1.210.0070.01015.89
7.1.200.0070.00515.85
7.1.190.0000.00815.52
7.1.180.0030.01315.71
7.1.170.0070.00315.47
7.1.160.0080.00917.24
7.1.150.0070.00817.30
7.1.140.0080.00817.28
7.1.130.0050.00917.13
7.1.120.0090.00917.28
7.1.110.0080.00816.92
7.1.100.0100.00516.87
7.1.90.0080.01016.98
7.1.80.0090.00916.97
7.1.70.0100.00516.38
7.1.60.0200.00825.29
7.1.50.0170.01525.35
7.1.40.0150.01124.98
7.1.30.0170.01025.21
7.1.20.0200.00924.84
7.1.10.0060.01015.85
7.1.00.0070.01016.15
7.0.330.0060.00615.44
7.0.320.0030.00915.25
7.0.310.0070.00715.36
7.0.300.0080.00615.41
7.0.290.0040.01115.08
7.0.280.0070.00715.43
7.0.270.0080.00415.40
7.0.260.0030.01015.30
7.0.250.0030.00915.41
7.0.240.0040.00815.40
7.0.230.0030.00815.39
7.0.220.0110.00415.49
7.0.210.0070.00715.14
7.0.200.0110.00415.38
7.0.190.0030.01015.48
7.0.180.0000.00815.42
7.0.170.0000.01315.48
7.0.160.0060.00715.34
7.0.150.0110.00015.13
7.0.140.0090.00015.43
7.0.130.0060.00615.17
7.0.120.0060.00315.31
7.0.110.0030.00615.44
7.0.100.0000.01115.13
7.0.90.0070.01015.55
7.0.80.0030.01015.42
7.0.70.0030.00615.37
7.0.60.0060.00615.61
7.0.50.0040.01115.50
7.0.40.0070.00313.47
7.0.30.0040.00413.43
7.0.20.0030.00513.47
7.0.10.0060.00613.46
7.0.00.0060.00613.51
5.6.400.0080.00814.45
5.6.390.0130.00314.21
5.6.380.0090.00614.48
5.6.370.0030.00914.26
5.6.360.0150.00014.45
5.6.350.0000.01414.13
5.6.340.0030.01214.48
5.6.330.0060.00314.50
5.6.320.0070.00714.45
5.6.310.0040.00814.04
5.6.300.0000.00914.08
5.6.290.0060.00314.37
5.6.280.0100.00714.20
5.6.270.0000.01014.52
5.6.260.0070.00414.14
5.6.250.0060.00913.98
5.6.240.0090.00614.36
5.6.230.0070.01114.34
5.6.220.0090.00314.18
5.6.210.0030.00914.13
5.6.200.0030.00714.36
5.6.190.0000.01014.21
5.6.180.0030.01014.04
5.6.170.0060.01014.19
5.6.160.0000.00914.04
5.6.150.0000.00914.34
5.6.140.0030.01014.11
5.6.130.0030.01014.05
5.6.120.0030.01014.30
5.6.110.0030.01014.15
5.6.100.0030.00614.21
5.6.90.0060.00514.41
5.6.80.0030.01014.00
5.6.70.0030.01014.27
5.6.60.0030.01314.01
5.6.50.0060.00914.24
5.6.40.0030.01014.13
5.6.30.0140.00313.99
5.6.20.0080.00314.35
5.6.10.0090.00013.98
5.6.00.0040.01114.14

preferences:
74.55 ms | 400 KiB | 5 Q