3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mid = 123; $csum = 0; foreach(str_split($mid) as $m){ $csum+= $m; } $csum = $csum % 10; echo $csum;

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.4.140.0140.00717.35
8.4.130.0120.00818.47
8.4.120.0130.00724.09
8.4.110.0040.00518.84
8.4.100.0140.00718.78
8.4.90.0120.00820.47
8.4.80.0090.01118.95
8.4.70.0090.01018.73
8.4.60.0050.00318.66
8.4.50.0090.00318.68
8.4.40.0060.00319.22
8.4.30.0060.01020.58
8.4.20.0060.00322.53
8.4.10.0100.01017.92
8.3.270.0090.01216.61
8.3.260.0050.00416.49
8.3.250.0130.00518.95
8.3.240.0090.01017.24
8.3.230.0090.00916.43
8.3.220.0050.00218.76
8.3.210.0130.00718.47
8.3.200.0030.00616.52
8.3.190.0090.00917.23
8.3.180.0020.00718.93
8.3.170.0090.00916.64
8.3.160.0100.00717.12
8.3.150.0090.00917.04
8.3.140.0110.00419.04
8.3.130.0120.00618.44
8.3.120.0060.00318.90
8.3.110.0050.00320.94
8.3.100.0030.00618.16
8.3.90.0080.00020.46
8.3.80.0090.00017.97
8.3.70.0120.00916.48
8.3.60.0130.01318.68
8.3.50.0120.00717.55
8.3.40.0070.00718.77
8.3.30.0070.00718.59
8.3.20.0000.00820.77
8.3.10.0060.00322.09
8.3.00.0090.00022.49
8.2.290.0110.00820.20
8.2.280.0120.00718.41
8.2.270.0000.01816.71
8.2.260.0140.00316.61
8.2.250.0050.00318.19
8.2.240.0090.00017.05
8.2.230.0080.00022.58
8.2.220.0040.00424.06
8.2.210.0030.00626.77
8.2.200.0060.00316.63
8.2.190.0120.00416.58
8.2.180.0100.01016.50
8.2.170.0070.00722.96
8.2.160.0070.00722.19
8.2.150.0090.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0100.01026.16
8.2.110.0090.00020.43
8.2.100.0110.00017.91
8.2.90.0040.00417.63
8.2.80.0060.00317.97
8.2.70.0090.00017.77
8.2.60.0050.00318.21
8.2.50.0040.00418.10
8.2.40.0060.00321.05
8.2.30.0000.00819.36
8.2.20.0000.00718.18
8.2.10.0030.00521.28
8.2.00.0040.00419.41
8.1.330.0130.00615.94
8.1.320.0150.00415.93
8.1.310.0090.00917.91
8.1.300.0090.00918.26
8.1.290.0070.00318.88
8.1.280.0060.01225.92
8.1.270.0000.00823.84
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0090.00023.94
8.1.230.0110.00018.83
8.1.220.0080.00017.75
8.1.210.0040.00418.77
8.1.200.0060.00317.00
8.1.190.0090.00017.22
8.1.180.0050.00318.10
8.1.170.0000.00818.64
8.1.160.0000.00819.05
8.1.150.0000.00818.87
8.1.140.0050.00220.25
8.1.130.0040.00419.98
8.1.120.0040.00417.45
8.1.110.0000.00817.41
8.1.100.0050.00317.43
8.1.90.0020.00517.34
8.1.80.0030.00517.44
8.1.70.0000.00817.44
8.1.60.0040.00417.57
8.1.50.0000.00717.52
8.1.40.0000.00817.41
8.1.30.0050.00317.59
8.1.20.0040.00417.54
8.1.10.0030.00517.52
8.1.00.0040.00417.48
8.0.300.0000.00819.70
8.0.290.0000.00816.75
8.0.280.0000.00718.45
8.0.270.0000.00918.66
8.0.260.0030.00319.97
8.0.250.0000.00716.95
8.0.240.0070.00016.84
8.0.230.0000.00716.84
8.0.220.0000.00716.71
8.0.210.0030.00316.75
8.0.200.0040.00416.95
8.0.190.0000.00816.85
8.0.180.0030.00516.80
8.0.170.0000.00916.90
8.0.160.0050.00316.75
8.0.150.0000.00716.73
8.0.140.0040.00416.81
8.0.130.0000.00513.40
8.0.120.0030.00416.76
8.0.110.0030.00416.77
8.0.100.0040.00416.99
8.0.90.0000.00816.76
8.0.80.0090.00616.79
8.0.70.0030.00516.75
8.0.60.0050.00316.72
8.0.50.0080.00016.87
8.0.30.0100.00717.02
8.0.20.0070.01016.95
8.0.10.0050.00216.96
8.0.00.0130.00416.74
7.4.330.0050.00015.55
7.4.320.0030.00316.59
7.4.300.0000.00716.59
7.4.290.0070.00016.50
7.4.280.0070.00016.52
7.4.270.0080.00016.64
7.4.260.0050.00013.27
7.4.250.0030.00316.55
7.4.240.0010.00616.42
7.4.230.0000.00716.45
7.4.220.0020.00516.61
7.4.210.0100.00616.46
7.4.200.0040.00416.58
7.4.130.0060.01616.68
7.4.120.0060.01216.33
7.4.110.0130.00316.43
7.4.100.0060.01016.61
7.4.90.0100.00716.52
7.4.80.0090.00919.39
7.4.70.0100.01016.51
7.4.60.0110.00916.52
7.4.50.0170.00016.57
7.4.40.0170.00616.32
7.4.00.0090.00614.94
7.3.330.0030.00316.45
7.3.320.0000.00613.04
7.3.310.0000.00716.38
7.3.300.0000.00716.16
7.3.290.0080.00816.36
7.3.280.0130.00316.43
7.3.260.0120.00916.36
7.3.240.0090.00916.48
7.3.230.0170.00016.26
7.3.210.0140.00316.31
7.3.200.0030.01316.23
7.3.190.0060.00916.43
7.3.180.0120.00616.35
7.3.170.0100.01016.40
7.3.160.0070.01416.63
7.3.100.0110.00414.75
7.3.90.0100.00714.73
7.3.80.0070.01014.80
7.3.70.0030.01014.55
7.3.60.0030.01014.88
7.3.50.0070.00714.89
7.3.40.0030.00914.62
7.3.30.0000.01414.60
7.3.20.0110.00714.78
7.3.10.0110.00714.89
7.3.00.0140.00314.97
7.2.330.0030.01416.61
7.2.320.0050.01016.70
7.2.310.0110.01116.36
7.2.300.0130.00916.63
7.2.290.0130.00416.73
7.2.230.0090.01115.16
7.2.220.0090.00914.94
7.2.210.0030.01014.96
7.2.200.0090.00615.05
7.2.190.0090.00614.94
7.2.180.0100.00614.93
7.2.170.0070.00715.11
7.2.160.0060.00914.93
7.2.150.0050.01115.04
7.2.140.0060.01215.09
7.2.130.0120.00914.92
7.2.120.0120.00315.26
7.2.110.0090.01214.95
7.2.100.0120.00915.26
7.2.90.0120.00614.89
7.2.80.0090.01314.86
7.2.70.0070.00715.18
7.2.60.0050.01314.96
7.2.50.0050.01215.02
7.2.40.0090.01114.82
7.2.30.0060.00915.28
7.2.20.0070.01315.14
7.2.10.0130.00714.89
7.2.00.0230.00014.84
7.1.320.0090.00914.01
7.1.310.0080.00814.11
7.1.300.0070.00713.79
7.1.290.0070.00714.08
7.1.280.0060.00814.00
7.1.270.0110.00314.23
7.1.260.0070.00714.00
7.1.250.0110.00313.88

preferences:
32.05 ms | 403 KiB | 5 Q