3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = $b = 1; printf('$a is %d and $b is $d', $a, $b); $b = 3; printf('$a is %d and $b is $d', $a, $b);

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.0170.00316.36
8.3.50.0180.00422.05
8.3.40.0070.00718.50
8.3.30.0080.00518.92
8.3.20.0040.00420.16
8.3.10.0040.00421.77
8.3.00.0080.00018.91
8.2.180.0100.01018.29
8.2.170.0140.00718.83
8.2.160.0100.00322.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00020.99
8.2.110.0030.00620.35
8.2.100.0110.00017.72
8.2.90.0030.00518.09
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0000.00717.55
8.2.50.0000.00818.07
8.2.40.0030.00519.79
8.2.30.0040.00417.97
8.2.20.0080.00017.66
8.2.10.0030.00517.95
8.2.00.0030.00617.54
8.1.280.0100.00725.92
8.1.270.0000.00918.88
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0090.00021.91
8.1.230.0000.01120.76
8.1.220.0040.00417.76
8.1.210.0030.00518.90
8.1.200.0030.00617.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0060.00318.46
8.1.160.0000.00721.96
8.1.150.0000.00718.72
8.1.140.0050.00319.12
8.1.130.0030.00317.81
8.1.120.0030.00417.43
8.1.110.0000.00917.38
8.1.100.0040.00317.37
8.1.90.0040.00417.40
8.1.80.0040.00417.32
8.1.70.0050.00317.29
8.1.60.0040.00717.43
8.1.50.0050.00317.46
8.1.40.0040.00417.48
8.1.30.0040.00417.57
8.1.20.0060.00317.48
8.1.10.0040.00417.29
8.1.00.0030.00517.34
8.0.300.0080.00020.11
8.0.290.0040.00416.58
8.0.280.0030.00318.37
8.0.270.0000.00717.18
8.0.260.0060.00017.07
8.0.250.0080.00316.87
8.0.240.0050.00316.86
8.0.230.0030.00316.88
8.0.220.0000.00716.86
8.0.210.0000.00716.79
8.0.200.0000.00616.76
8.0.190.0040.00416.86
8.0.180.0030.00316.80
8.0.170.0020.00516.86
8.0.160.0030.00316.93
8.0.150.0040.00416.70
8.0.140.0050.00516.75
8.0.130.0070.00013.25
8.0.120.0000.00816.80
8.0.110.0040.00416.84
8.0.100.0000.00716.64
8.0.90.0000.00716.69
8.0.80.0000.01616.83
8.0.70.0040.00416.82
8.0.60.0040.00416.64
8.0.50.0000.00716.86
8.0.30.0120.01317.08
8.0.20.0090.00917.40
8.0.10.0000.00716.98
8.0.00.0070.01016.59
7.4.330.0030.00315.03
7.4.320.0030.00316.44
7.4.300.0030.00316.32
7.4.290.0030.00316.45
7.4.280.0040.00416.43
7.4.270.0030.00316.38
7.4.260.0060.00316.42
7.4.250.0040.00416.46
7.4.240.0050.00216.52
7.4.230.0030.00316.41
7.4.220.0140.00316.57
7.4.210.0060.00916.50
7.4.200.0030.00316.58
7.4.160.0090.00616.42
7.4.150.0070.01017.40
7.4.140.0080.00917.86
7.4.130.0090.00816.29
7.4.120.0040.01316.26
7.4.110.0120.00616.42
7.4.100.0130.01016.37
7.4.90.0100.00716.28
7.4.80.0100.00719.39
7.4.70.0040.01216.29
7.4.60.0140.00316.36
7.4.50.0050.00016.48
7.4.40.0060.00916.36
7.4.30.0030.01616.41
7.4.00.0060.01014.79
7.3.330.0050.00013.05
7.3.320.0060.00012.96
7.3.310.0000.00715.95
7.3.300.0040.00416.14
7.3.290.0070.00716.19
7.3.280.0090.00616.09
7.3.270.0130.00317.40
7.3.260.0100.00716.24
7.3.250.0110.01016.21
7.3.240.0100.00816.41
7.3.230.0140.01316.39
7.3.210.0190.00716.32
7.3.200.0030.01319.39
7.3.190.0140.00316.47
7.3.180.0170.00316.13
7.3.170.0120.01216.36
7.3.160.0100.00716.14
7.3.10.0130.00616.05
7.3.00.0120.00416.32
7.2.330.0120.00616.57
7.2.320.0100.01016.53
7.2.310.0090.00916.32
7.2.300.0080.01216.25
7.2.290.0090.01316.34
7.2.130.0140.00716.49
7.2.120.0110.01416.44
7.2.110.0110.01115.80
7.2.100.0170.00315.98
7.2.90.0250.00616.76
7.2.80.0100.01315.98
7.2.70.0150.00716.67
7.2.60.0170.00715.96
7.2.50.0190.00616.14
7.2.40.0130.01316.30
7.2.30.0160.00816.25
7.2.20.0140.01116.11
7.2.10.0230.00616.58
7.2.00.0240.00616.48
7.1.250.0190.00415.34
7.1.100.0000.01117.84
7.1.70.0000.01017.01
7.1.60.0060.01219.46
7.1.50.0090.01516.57
7.1.00.0100.07022.51
7.0.200.0200.00314.42
7.0.140.0030.06021.95
7.0.60.0100.05319.86
7.0.50.0030.07717.79
7.0.40.0100.08320.08
7.0.30.0270.04320.02
7.0.20.0330.08020.16
7.0.10.0100.04020.09
7.0.00.0000.04720.16
5.6.280.0030.07321.12
5.6.210.0100.06020.66
5.6.200.0000.05018.18
5.6.190.0030.08720.39
5.6.180.0500.05020.48
5.6.170.0370.07020.33
5.6.160.0070.05320.49
5.6.150.0070.04018.22
5.6.140.0100.07318.11
5.6.130.0030.05718.12
5.6.120.0070.08321.14
5.6.110.0070.04020.96
5.6.100.0000.05720.95
5.6.90.0070.07021.03
5.6.80.0070.07720.40
5.5.350.0230.08320.39
5.5.340.0070.08317.93
5.5.330.0070.08020.19
5.5.320.0000.07720.17
5.5.310.0330.05020.24
5.5.300.0070.08018.00
5.5.290.0070.07018.02
5.5.280.0030.04320.73
5.5.270.0070.06320.74
5.5.260.0100.06020.83
5.5.250.0070.04020.69
5.5.240.0070.06320.15
5.4.450.0530.06019.64
5.4.440.0730.06719.48
5.4.430.0130.06019.52
5.4.420.0200.04319.51
5.4.410.0100.05319.40
5.4.400.0130.07318.96
5.4.390.0300.06318.77
5.4.380.0170.07318.65
5.4.370.0170.06018.46
5.4.360.0170.06318.72
5.4.350.0200.06318.60
5.4.340.0270.06718.67
5.4.320.0230.06318.77
5.4.310.0270.06018.47
5.4.300.0200.08318.64
5.4.290.0170.08318.77
5.4.280.0330.06018.55
5.4.270.0330.06018.75
5.4.260.0200.05318.48
5.4.250.0200.06318.64
5.4.240.0200.05718.55
5.4.230.0230.05318.72
5.4.220.0130.06018.66
5.4.210.0270.05018.61
5.4.200.0170.05716.46
5.4.190.0230.05318.69
5.4.180.0130.06318.62
5.4.170.0170.06318.50
5.4.160.0130.06318.64
5.4.150.0230.05318.49
5.4.140.0100.06316.38
5.4.130.0170.04716.00
5.4.120.0200.05316.02
5.4.110.0200.04716.14
5.4.100.0270.04716.08
5.4.90.0230.04316.17
5.4.80.0370.03316.33
5.4.70.0130.06016.28
5.4.60.0200.05716.01
5.4.50.0130.05716.14
5.4.40.0200.07016.09
5.4.30.0370.04016.13
5.4.20.0200.05316.32
5.4.10.0170.05016.02
5.4.00.0230.04715.67
5.3.290.0270.05314.59
5.3.280.0200.07314.56
5.3.270.0230.05714.50
5.3.260.0100.07014.68
5.3.250.0230.05714.57
5.3.240.0130.06714.68
5.3.230.0200.07014.54
5.3.220.0270.05314.53
5.3.210.0200.06314.65
5.3.200.0330.05714.46
5.3.190.0270.06314.56
5.3.180.0270.05714.54
5.3.170.0170.06314.53
5.3.160.0200.07014.66
5.3.150.0130.07014.46
5.3.140.0200.06014.50
5.3.130.0200.05314.55
5.3.120.0230.07014.57
5.3.110.0130.07714.53
5.3.100.0300.05714.00
5.3.90.0200.06713.91
5.3.80.0230.05314.07
5.3.70.0100.07714.10
5.3.60.0270.06013.99
5.3.50.0170.07013.92
5.3.40.0100.06313.91
5.3.30.0170.07013.84
5.3.20.0230.06313.78
5.3.10.0230.06313.73
5.3.00.0330.04713.62
5.2.170.0230.03711.27
5.2.160.0170.04311.29
5.2.150.0200.04311.19
5.2.140.0200.05311.11
5.2.130.0230.03711.13
5.2.120.0230.05311.25
5.2.110.0130.05011.07
5.2.100.0170.05311.23
5.2.90.0170.05311.13
5.2.80.0130.06011.21
5.2.70.0130.06011.02
5.2.60.0270.04711.09
5.2.50.0170.05711.07
5.2.40.0170.04311.00
5.2.30.0170.05010.94
5.2.20.0100.05711.09
5.2.10.0230.04010.82
5.2.00.0130.04310.80
5.1.60.0200.0409.96
5.1.50.0170.04310.02
5.1.40.0070.05310.00
5.1.30.0130.05010.45
5.1.20.0170.04710.43
5.1.10.0070.04710.06
5.1.00.0100.03710.11
5.0.50.0030.0408.54
5.0.40.0170.0308.41
5.0.30.0070.0508.27
5.0.20.0070.0308.27
5.0.10.0100.0378.18
5.0.00.0030.0578.17
4.4.90.0070.0276.64
4.4.80.0030.0236.64
4.4.70.0030.0276.64
4.4.60.0030.0236.64
4.4.50.0070.0306.64
4.4.40.0070.0376.64
4.4.30.0030.0336.64
4.4.20.0070.0306.64
4.4.10.0070.0306.64
4.4.00.0130.0376.64
4.3.110.0130.0176.64
4.3.100.0130.0236.64
4.3.90.0130.0236.64
4.3.80.0030.0476.64
4.3.70.0070.0306.64
4.3.60.0030.0336.64
4.3.50.0100.0236.64
4.3.40.0030.0476.64
4.3.30.0030.0236.64
4.3.20.0070.0276.64
4.3.10.0000.0336.64
4.3.00.0030.0279.24

preferences:
36.83 ms | 401 KiB | 5 Q