3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo (string &...$in): string { return implode(', ', $in); } $x = 1; $y = 2; $z = 3; echo foo($x, $y, $z);

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.10.0080.01117.55
8.3.140.0120.00317.15
8.3.130.0060.00318.08
8.3.120.0090.00020.71
8.3.110.0070.01120.94
8.3.100.0070.00324.06
8.3.90.0110.00026.77
8.3.80.0030.00619.36
8.3.70.0160.00016.58
8.3.60.0120.00316.50
8.3.50.0070.00922.15
8.3.40.0110.00418.63
8.3.30.0140.00018.67
8.3.20.0080.00018.78
8.3.10.0030.00521.75
8.3.00.0000.00817.89
8.2.250.0050.00318.66
8.2.240.0130.00617.28
8.2.230.0000.00722.58
8.2.220.0040.00437.54
8.2.210.0120.00326.77
8.2.200.0060.00318.88
8.2.190.0100.01016.63
8.2.180.0150.00018.16
8.2.170.0120.00322.96
8.2.160.0120.00920.02
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0060.00319.67
8.2.120.0040.00426.35
8.2.110.0030.00621.00
8.2.100.0030.00917.72
8.2.90.0080.00017.75
8.2.80.0050.00318.73
8.2.70.0040.00417.75
8.2.60.0040.00417.63
8.2.50.0040.00417.50
8.2.40.0050.00319.14
8.2.30.0040.00418.16
8.2.20.0040.00417.69
8.2.10.0040.00417.88
8.2.00.0000.00818.10
8.1.300.0070.01117.87
8.1.290.0090.00030.84
8.1.280.0110.00425.92
8.1.270.0000.00923.99
8.1.260.0130.00326.35
8.1.250.0070.00028.09
8.1.240.0050.00322.20
8.1.230.0080.00417.77
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0100.00317.00
8.1.190.0060.00317.10
8.1.180.0030.00718.10
8.1.170.0000.00818.86
8.1.160.0020.00521.95
8.1.150.0040.00418.82
8.1.140.0000.00719.39
8.1.130.0060.00317.40
8.1.120.0050.00217.28
8.1.110.0030.00517.30
8.1.100.0040.00417.33
8.1.90.0050.00517.37
8.1.80.0000.00717.29
8.1.70.0000.00817.45
8.1.60.0060.00317.58
8.1.50.0030.00617.51
8.1.40.0030.00517.46
8.1.30.0030.00617.56
8.1.20.0040.00417.55
8.1.10.0080.00017.57
8.1.00.0040.00417.58
8.0.300.0000.00718.77
8.0.290.0050.00316.75
8.0.280.0030.00318.44
8.0.270.0000.00716.87
8.0.260.0000.00716.78
8.0.250.0000.00716.94
8.0.240.0070.00016.90
8.0.230.0070.00016.77
8.0.220.0070.00016.84
8.0.210.0030.00316.67
8.0.200.0000.00616.90
8.0.190.0000.00816.91
8.0.180.0040.00416.79
8.0.170.0040.00416.76
8.0.160.0000.00716.83
8.0.150.0100.00016.81
8.0.140.0030.00516.80
8.0.130.0030.00313.22
8.0.120.0000.00816.69
8.0.110.0040.00416.68
8.0.100.0040.00416.88
8.0.90.0050.00216.67
8.0.80.0110.00416.72
8.0.70.0040.00416.79
8.0.60.0030.00516.90
8.0.50.0000.00716.84
8.0.30.0130.00517.00
8.0.20.0110.01017.40
8.0.10.0050.00217.02
8.0.00.0090.00816.62
7.4.330.0000.00515.08
7.4.320.0000.00616.47
7.4.300.0030.00316.63
7.4.290.0000.00716.55
7.4.280.0030.00516.51
7.4.270.0030.00316.59
7.4.260.0060.00316.53
7.4.250.0030.00316.40
7.4.240.0000.00716.51
7.4.230.0070.00016.63
7.4.220.0130.00316.52
7.4.210.0060.00916.57
7.4.200.0030.00316.63
7.4.160.0080.00816.48
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0090.00816.53
7.4.120.0110.00516.49
7.4.110.0140.01016.49
7.4.100.0110.01016.30
7.4.90.0090.00916.57
7.4.80.0070.01419.39
7.4.70.0150.00616.61
7.4.60.0060.00916.25
7.4.50.0180.00016.55
7.4.40.0100.01316.66
7.4.30.0110.00616.57
7.4.00.0030.01214.68
7.3.330.0030.00313.27
7.3.320.0030.00313.30
7.3.310.0050.00216.20
7.3.300.0030.00316.32
7.3.290.0100.00716.32
7.3.280.0090.00816.33
7.3.270.0070.01017.40
7.3.260.0120.00916.25
7.3.250.0090.01116.40
7.3.240.0100.00716.29
7.3.230.0060.01016.39
7.3.210.0060.00916.22
7.3.200.0100.00719.39
7.3.190.0060.01116.59
7.3.180.0120.00916.43
7.3.170.0080.00816.45
7.3.160.0060.00916.46
7.2.330.0130.00316.39
7.2.320.0030.01616.58
7.2.310.0180.00316.21
7.2.300.0120.00616.51
7.2.290.0100.00716.40
7.2.60.0000.01116.71
7.2.00.0090.00319.09
7.1.200.0080.00515.70
7.1.100.0080.00418.08
7.1.70.0040.00417.03
7.1.60.0110.01419.54
7.1.50.0120.00916.96
7.1.00.0070.07322.50
7.0.200.0000.01016.75
7.0.60.0170.05719.85
7.0.50.0230.05720.43
7.0.40.0230.04720.32
7.0.30.0170.05720.37
7.0.20.0230.05020.30
7.0.10.0200.05020.32
7.0.00.0200.05320.36
5.6.280.0030.06721.13
5.6.210.0100.06720.54
5.6.200.0170.05721.06
5.6.190.0230.05021.20
5.6.180.0070.06721.04
5.6.170.0170.05321.08
5.6.160.0230.05721.20
5.6.150.0170.05321.04
5.6.140.0200.05021.16
5.6.130.0130.06321.04
5.6.120.0200.05321.05
5.6.110.0230.05021.12
5.6.100.0200.05321.00
5.6.90.0100.06720.93
5.6.80.0270.04320.50
5.6.70.0270.04320.49
5.6.60.0130.05320.39
5.6.50.0170.05320.55
5.6.40.0200.07020.39
5.6.30.0230.06720.41
5.6.20.0270.04320.47
5.6.10.0130.05320.48
5.6.00.0130.05720.43
5.5.350.0070.08020.52
5.5.340.0070.06321.02
5.5.330.0230.05020.86
5.5.320.0200.04720.83
5.5.310.0100.06021.02
5.5.300.0230.04720.79
5.5.290.0200.05720.86
5.5.280.0130.06320.86
5.5.270.0030.07020.78
5.5.260.0270.04720.84
5.5.250.0130.07720.64
5.5.240.0070.06020.27
5.5.230.0170.05320.24
5.5.220.0200.05320.38
5.5.210.0100.06020.24
5.5.200.0200.07320.37
5.5.190.0130.05320.11
5.5.180.0100.05720.06
5.5.160.0030.06320.20
5.5.150.0170.05020.18
5.5.140.0130.05720.39
5.5.130.0170.05320.37
5.5.120.0270.04720.20
5.5.110.0100.06020.16
5.5.100.0130.06020.11
5.5.90.0230.06020.06
5.5.80.0170.05320.00
5.5.70.0100.06020.15
5.5.60.0170.05020.27
5.5.50.0070.06020.09
5.5.40.0100.05720.25
5.5.30.0200.05020.05
5.5.20.0070.06319.91
5.5.10.0230.04720.20
5.5.00.0130.05320.13

preferences:
57.41 ms | 403 KiB | 5 Q