3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($a, $a){ return ($a + $a); } echo test(test(0,2), test(2,5));

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)
5.6.280.0070.07020.91
5.6.210.0000.04320.67
5.6.200.0030.08018.15
5.6.190.0070.04320.61
5.6.180.0230.04720.68
5.6.170.0370.04320.52
5.6.160.0070.08320.46
5.6.150.0070.08018.16
5.6.140.0130.05018.21
5.6.130.0030.04718.18
5.6.120.0030.04020.92
5.6.110.0100.06321.11
5.6.100.0070.08320.96
5.6.90.0130.08020.97
5.6.80.0100.06320.38
5.5.350.0270.07020.44
5.5.340.0070.06718.09
5.5.330.0130.08020.13
5.5.320.0370.04020.30
5.5.310.0270.08320.34
5.5.300.0030.04018.05
5.5.290.0130.07717.96
5.5.280.0030.08020.74
5.5.270.0030.05320.81
5.5.260.0070.04320.96
5.5.250.0000.05320.71
5.5.240.0270.07320.04
5.4.450.0270.04319.20
5.4.440.0100.04719.64
5.4.430.0130.04319.46
5.4.420.0230.04019.41
5.4.410.0100.04719.18
5.4.400.0330.03319.09
5.4.390.0130.03319.09
5.4.380.0100.06018.69
5.4.370.0170.05318.79
5.4.360.0230.05018.81
5.4.350.0270.06718.46
5.4.340.0170.07718.61
5.4.320.0060.03812.50
5.4.310.0070.03812.50
5.4.300.0040.03912.51
5.4.290.0070.03712.50
5.4.280.0070.03412.40
5.4.270.0070.03512.40
5.4.260.0060.03812.40
5.4.250.0060.03612.40
5.4.240.0050.03612.40
5.4.230.0060.03712.39
5.4.220.0080.03312.39
5.4.210.0070.03412.39
5.4.200.0040.03912.39
5.4.190.0060.04412.39
5.4.180.0040.03812.38
5.4.170.0050.03812.39
5.4.160.0050.04412.39
5.4.150.0060.04212.39
5.4.140.0040.03912.07
5.4.130.0060.03512.06
5.4.120.0040.03712.02
5.4.110.0080.03312.01
5.4.100.0050.03512.01
5.4.90.0030.04012.02
5.4.80.0060.03712.01
5.4.70.0080.03212.01
5.4.60.0060.03412.01
5.4.50.0090.03412.01
5.4.40.0050.03612.00
5.4.30.0090.03211.99
5.4.20.0070.03311.99
5.4.10.0060.03512.00
5.4.00.0050.03511.48
5.3.290.0040.04312.80
5.3.280.0050.03812.70
5.3.270.0120.03312.73
5.3.260.0060.04112.72
5.3.250.0060.03612.72
5.3.240.0010.04112.72
5.3.230.0040.03912.71
5.3.220.0090.03512.68
5.3.210.0060.03812.68
5.3.200.0100.03512.68
5.3.190.0050.03812.68
5.3.180.0070.03612.67
5.3.170.0060.03812.67
5.3.160.0070.03612.67
5.3.150.0060.03812.67
5.3.140.0090.03312.66
5.3.130.0050.03912.66
5.3.120.0070.03712.66
5.3.110.0040.04112.66
5.3.100.0080.03512.12
5.3.90.0050.03712.10
5.3.80.0090.03312.09
5.3.70.0060.03612.08
5.3.60.0100.03312.08
5.3.50.0050.04112.02
5.3.40.0070.04112.02
5.3.30.0080.03611.98
5.3.20.0060.03811.75
5.3.10.0060.03811.73
5.3.00.0110.03111.71
5.2.170.0040.0329.21
5.2.160.0060.0309.21
5.2.150.0040.0319.21
5.2.140.0070.0289.21
5.2.130.0050.0299.17
5.2.120.0030.0319.17
5.2.110.0010.0339.18
5.2.100.0080.0259.17
5.2.90.0070.0289.17
5.2.80.0060.0289.17
5.2.70.0060.0289.16
5.2.60.0060.0299.12
5.2.50.0040.0319.09
5.2.40.0040.0289.07
5.2.30.0060.0319.04
5.2.20.0040.0299.04
5.2.10.0050.0338.94
5.2.00.0040.0298.79
5.1.60.0030.0258.08
5.1.50.0050.0288.07
5.1.40.0040.0278.06
5.1.30.0040.0278.41
5.1.20.0040.0308.43
5.1.10.0060.0338.16
5.1.00.0050.0298.16
5.0.50.0060.0196.64
5.0.40.0050.0186.50
5.0.30.0020.0336.30
5.0.20.0040.0196.27
5.0.10.0040.0206.25
5.0.00.0030.0316.25
4.4.90.0030.0154.78
4.4.80.0040.0134.76
4.4.70.0040.0144.75
4.4.60.0020.0164.75
4.4.50.0020.0164.77
4.4.40.0030.0254.71
4.4.30.0030.0154.75
4.4.20.0040.0144.84
4.4.10.0010.0174.85
4.4.00.0040.0244.76
4.3.110.0050.0194.67
4.3.100.0040.0144.67
4.3.90.0020.0154.63
4.3.80.0030.0254.58
4.3.70.0030.0144.63
4.3.60.0050.0124.63
4.3.50.0020.0184.62
4.3.40.0050.0224.53
4.3.30.0010.0193.29
4.3.20.0020.0163.27
4.3.10.0020.0153.23
4.3.00.0070.02718.16

preferences:
142.44 ms | 1394 KiB | 7 Q