3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($s) { printf("---%*s%*s---\n",10+strlen(s)/2,s,10-strlen(s)/2,""); } f("uno"); f("quattro");

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.0090.00618.42
8.3.50.0100.00822.03
8.3.40.0150.00418.74
8.3.30.0000.01518.83
8.3.20.0040.00418.66
8.3.10.0040.00421.73
8.3.00.0000.00820.84
8.2.180.0070.01016.38
8.2.170.0120.00322.96
8.2.160.0110.00418.89
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0080.00022.28
8.2.120.0050.00326.35
8.2.110.0030.00621.04
8.2.100.0080.00017.84
8.2.90.0040.00417.91
8.2.80.0000.00919.94
8.2.70.0050.00317.93
8.2.60.0000.00717.80
8.2.50.0060.00318.10
8.2.40.0030.00620.50
8.2.30.0000.00720.72
8.2.20.0040.00417.61
8.2.10.0000.00718.05
8.2.00.0040.00418.00
8.1.280.0110.00425.92
8.1.270.0080.00023.87
8.1.260.0050.00228.09
8.1.250.0000.00728.09
8.1.240.0070.00322.61
8.1.230.0070.00422.25
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0050.00317.23
8.1.190.0050.00517.23
8.1.180.0060.00318.10
8.1.170.0040.00418.56
8.1.160.0000.00722.11
8.1.150.0080.00018.70
8.1.140.0000.00719.64
8.1.130.0000.00717.55
8.1.120.0030.00317.30
8.1.110.0020.00517.46
8.1.100.0040.00417.39
8.1.90.0040.00417.42
8.1.80.0000.00717.47
8.1.70.0000.00717.39
8.1.60.0080.00017.55
8.1.50.0000.00817.48
8.1.40.0030.00517.35
8.1.30.0050.00317.49
8.1.20.0030.00617.58
8.1.10.0070.00017.30
8.1.00.0000.00817.44
8.0.300.0070.00019.98
8.0.290.0040.00416.88
8.0.280.0000.00718.46
8.0.270.0050.00517.13
8.0.260.0060.00017.17
8.0.250.0030.00317.06
8.0.240.0000.00717.03
8.0.230.0070.00017.02
8.0.220.0040.00416.93
8.0.210.0050.00216.94
8.0.200.0040.00416.85
8.0.190.0030.00316.92
8.0.180.0040.00416.86
8.0.170.0050.00316.90
8.0.160.0030.00516.85
8.0.150.0040.00416.90
8.0.140.0090.00316.89
8.0.130.0050.00013.39
8.0.120.0030.00516.86
8.0.110.0000.00816.75
8.0.100.0000.00716.92
8.0.90.0040.00416.86
8.0.80.0100.00617.00
8.0.70.0030.00416.89
8.0.60.0070.00016.95
8.0.50.0030.00516.99
8.0.30.0130.00817.07
8.0.20.0100.00917.40
8.0.10.0050.00216.90
8.0.00.0120.01016.68
7.4.330.0020.00215.08
7.4.320.0060.00016.55
7.4.300.0060.00316.44
7.4.290.0030.00316.50
7.4.280.0080.00016.37
7.4.270.0070.00016.58
7.4.260.0030.00316.38
7.4.250.0040.00416.36
7.4.240.0070.00016.55
7.4.230.0030.00316.45
7.4.220.0180.00616.31
7.4.210.0040.01116.58
7.4.200.0070.00016.25
7.4.160.0080.00816.45
7.4.150.0130.00417.40
7.4.140.0070.01017.86
7.4.130.0090.00816.61
7.4.120.0090.01016.59
7.4.110.0090.00816.51
7.4.100.0060.01216.41
7.4.90.0120.01216.43
7.4.80.0160.00319.39
7.4.70.0060.01016.53
7.4.60.0060.01116.26
7.4.50.0030.00616.53
7.4.40.0110.01216.43
7.4.30.0080.00816.32
7.4.00.0070.00714.74
7.3.330.0030.00313.27
7.3.320.0050.00013.25
7.3.310.0050.00216.18
7.3.300.0000.00716.28
7.3.290.0090.00716.34
7.3.280.0100.00816.34
7.3.270.0070.01117.40
7.3.260.0120.00916.30
7.3.250.0100.00716.35
7.3.240.0070.01216.26
7.3.230.0090.01216.53
7.3.210.0130.00416.33
7.3.200.0110.00616.44
7.3.190.0120.00416.53
7.3.180.0090.00616.61
7.3.170.0120.01116.48
7.3.160.0120.00616.34
7.2.330.0070.01116.71
7.2.320.0090.00916.38
7.2.310.0090.00916.65
7.2.300.0160.01016.72
7.2.290.0040.01316.68
7.2.60.0060.00917.00
7.2.00.0040.00719.55
7.1.200.0200.00815.37
7.1.100.0060.00618.07
7.1.70.0040.00717.11
7.1.60.0130.01020.41
7.1.50.0060.00916.71
7.1.00.0070.07322.30
7.0.200.0850.00314.33
7.0.60.0000.08721.83
7.0.50.0030.03717.88
7.0.40.0530.06320.20
7.0.30.0400.05720.10
7.0.20.0270.07720.08
7.0.10.0370.07320.14
7.0.00.0300.06020.13
5.6.280.0130.06321.04
5.6.210.0070.06720.67
5.6.200.0000.05318.28
5.6.190.0400.07020.44
5.6.180.0300.06320.54
5.6.170.0470.06720.67
5.6.160.0270.05320.45
5.6.150.0200.07020.38
5.6.140.0270.05320.41
5.6.130.0170.06020.42
5.6.120.0300.05720.38
5.6.110.0300.05320.20
5.6.100.0170.06020.34
5.6.90.0200.06020.40
5.6.80.0200.05019.82
5.6.70.0230.05019.96
5.6.60.0130.06019.78
5.6.50.0170.06319.70
5.6.40.0100.06019.78
5.6.30.0200.05019.73
5.6.20.0130.05319.63
5.6.10.0070.06319.73
5.6.00.0200.04719.73
5.5.350.0230.04320.41
5.5.340.0030.04017.96
5.5.330.0330.06720.25
5.5.320.0330.05320.34
5.5.310.0370.07320.23
5.5.300.0130.06320.13
5.5.290.0130.05720.14
5.5.280.0470.05720.21
5.5.270.0130.06720.00
5.5.260.0230.05320.15
5.5.250.0200.05719.95
5.5.240.0130.05719.63
5.5.230.0070.06319.46
5.5.220.0300.04719.50
5.5.210.0200.05319.59
5.5.200.0100.05719.51
5.5.190.0230.04719.52
5.5.180.0130.05319.57
5.5.160.0170.05019.45
5.5.150.0070.06719.57
5.5.140.0230.05019.58
5.5.130.0130.06019.56
5.5.120.0130.06019.48
5.5.110.0170.05319.35
5.5.100.0100.06019.48
5.5.90.0100.06019.41
5.5.80.0130.05319.33
5.5.70.0170.05319.44
5.5.60.0270.04319.45
5.5.50.0170.05319.47
5.5.40.0130.05319.47
5.5.30.0270.04319.53
5.5.20.0170.05319.36
5.5.10.0230.04719.36
5.5.00.0270.04319.44

preferences:
75.17 ms | 401 KiB | 5 Q