3v4l.org

run code in 300+ PHP versions simultaneously
<?php $operande1 = 5; $operande2 = 10; $operation = "*"; calcul($operande1,$operande2,$operation); function calcul($operande1, $operande2, $operation) { echo $operande1; echo $operande2; echo $operation; eval('$result=('.$operande1.")".$operation."(".$operande2.");"); echo $result; }

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.70.0090.00616.48
8.3.60.0030.01418.18
8.3.50.0150.00322.09
8.3.40.0070.00718.54
8.3.30.0140.00019.19
8.3.20.0050.00320.29
8.3.10.0080.00021.86
8.3.00.0040.00419.25
8.2.190.0150.00018.39
8.2.180.0090.00617.00
8.2.170.0090.00922.96
8.2.160.0100.00320.52
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0160.00026.16
8.2.120.0040.00422.18
8.2.110.0080.00020.52
8.2.100.0030.00918.03
8.2.90.0040.00419.27
8.2.80.0030.00617.97
8.2.70.0080.00017.63
8.2.60.0050.00317.93
8.2.50.0030.00518.10
8.2.40.0040.00420.45
8.2.30.0060.00318.11
8.2.20.0000.00917.70
8.2.10.0080.00018.05
8.2.00.0060.00317.65
8.1.280.0070.01325.92
8.1.270.0040.00422.23
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0050.00523.97
8.1.230.0040.00817.65
8.1.220.0090.00017.74
8.1.210.0040.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.36
8.1.180.0080.00018.10
8.1.170.0040.00418.71
8.1.160.0030.00319.02
8.1.150.0040.00418.86
8.1.140.0030.00617.42
8.1.130.0060.00317.80
8.1.120.0040.00417.38
8.1.110.0030.00517.41
8.1.100.0040.00417.46
8.1.90.0000.00717.48
8.1.80.0000.00817.51
8.1.70.0070.00017.46
8.1.60.0050.00317.52
8.1.50.0030.00517.57
8.1.40.0060.00317.55
8.1.30.0000.00817.65
8.1.20.0000.00817.55
8.1.10.0030.00617.48
8.1.00.0080.00017.53
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.37
8.0.270.0030.00317.26
8.0.260.0000.00717.11
8.0.250.0020.00516.89
8.0.240.0050.00216.88
8.0.230.0030.00316.94
8.0.220.0040.00416.85
8.0.210.0070.00016.79
8.0.200.0000.00816.84
8.0.190.0040.00416.92
8.0.180.0070.00016.83
8.0.170.0080.00016.86
8.0.160.0000.00716.84
8.0.150.0040.00416.80
8.0.140.0040.00416.89
8.0.130.0030.00313.37
8.0.120.0030.00616.93
8.0.110.0030.00516.90
8.0.100.0000.00716.89
8.0.90.0000.00716.79
8.0.80.0000.01516.87
8.0.70.0040.00416.79
8.0.60.0070.00016.72
8.0.50.0040.00416.84
8.0.30.0100.01017.13
8.0.20.0150.00617.40
8.0.10.0040.00416.99
8.0.00.0150.00516.69
7.4.330.0050.00015.00
7.4.320.0000.00616.49
7.4.300.0030.00316.50
7.4.290.0020.00516.50
7.4.280.0000.00816.50
7.4.270.0030.00316.62
7.4.260.0030.00316.60
7.4.250.0040.00416.45
7.4.240.0040.00416.55
7.4.230.0050.00316.63
7.4.220.0060.01116.63
7.4.210.0000.01416.61
7.4.200.0000.00716.39
7.4.160.0030.01316.41
7.4.150.0160.00917.40
7.4.140.0100.01017.86
7.4.130.0170.00716.66
7.4.120.0050.01216.49
7.4.110.0120.00616.70
7.4.100.0140.00316.55
7.4.90.0080.00816.60
7.4.80.0110.00719.39
7.4.70.0100.00716.55
7.4.60.0030.01316.42
7.4.50.0040.00416.15
7.4.40.0110.00616.34
7.4.30.0120.00416.47
7.4.00.0140.00315.13
7.3.330.0090.00013.16
7.3.320.0020.00213.27
7.3.310.0070.00016.26
7.3.300.0000.00716.31
7.3.290.0100.00716.28
7.3.280.0090.00716.33
7.3.270.0150.00917.40
7.3.260.0120.00516.72
7.3.240.0080.00816.58
7.3.230.0090.00916.57
7.3.210.0110.00716.32
7.3.200.0090.00919.39
7.3.190.0060.01316.37
7.3.180.0040.01216.52
7.3.170.0080.00816.54
7.3.160.0060.00916.72
7.2.330.0090.01416.49
7.2.320.0150.00316.70
7.2.310.0060.01016.60
7.2.300.0070.01016.63
7.2.290.0130.01016.73
7.2.60.0090.00616.84
7.2.00.0000.01219.23
7.1.200.0080.00415.87
7.1.100.5590.00716.57
7.1.70.0030.01617.19
7.1.60.0040.01819.32
7.1.50.0030.01016.62
7.1.00.0000.08022.37
7.0.200.0030.00616.59
7.0.140.0030.07321.95
7.0.60.0070.05019.93
7.0.50.0070.04017.78
7.0.40.0030.04720.25
7.0.30.0500.07720.09
7.0.20.0230.06020.26
7.0.10.0130.05320.16
7.0.00.0070.08320.23
5.6.280.0030.07321.10
5.6.210.0030.08720.52
5.6.200.0000.04318.16
5.6.190.0130.09020.48
5.6.180.0170.04320.69
5.6.170.0370.07720.71
5.6.160.0130.08320.48
5.6.150.0070.04018.21
5.6.140.0070.05718.21
5.6.130.0030.08318.23
5.6.120.0100.03721.01
5.6.110.0030.09321.09
5.6.100.0230.07721.03
5.6.90.0070.04320.99
5.6.80.0070.08020.29
5.5.350.0100.03320.41
5.5.340.0130.07317.96
5.5.330.0100.06020.31
5.5.320.0430.07720.34
5.5.310.0330.07320.28
5.5.300.0070.08317.97
5.5.290.0100.06718.02
5.5.280.0030.04020.96
5.5.270.0070.04720.79
5.5.260.0100.08320.77
5.5.250.0070.08020.69
5.5.240.0370.06320.27
5.4.450.0770.05319.63
5.4.440.0630.06319.20
5.4.430.0900.04019.55
5.4.420.0670.00019.52
5.4.410.0630.00019.27
5.4.400.0630.00019.22
5.4.390.0630.00019.07
5.4.380.0630.00019.27
5.4.370.0600.00019.04
5.4.360.0670.00019.17
5.4.350.0670.00019.02
5.4.340.0070.04112.02
5.4.320.0070.04412.50
5.4.310.0070.04512.50
5.4.300.0050.04012.51
5.4.290.0070.04212.50
5.4.280.0090.04112.39
5.4.270.0070.03412.40
5.4.260.0030.04112.40
5.4.250.0060.04112.40
5.4.240.0100.03212.39
5.4.230.0040.03912.39
5.4.220.0080.03412.39
5.4.210.0080.04312.39
5.4.200.0020.04912.39
5.4.190.0060.03612.38
5.4.180.0050.03812.39
5.4.170.0030.04112.39
5.4.160.0030.03912.39
5.4.150.0100.04112.39
5.4.140.0070.05012.07
5.4.130.0070.03612.05
5.4.120.0120.04112.02
5.4.110.0100.03612.01
5.4.100.0070.03412.02
5.4.90.0050.04112.01
5.4.80.0050.03812.01
5.4.70.0040.03612.01
5.4.60.0040.03612.01
5.4.50.0080.03412.01
5.4.40.0040.03512.00
5.4.30.0060.04211.99
5.4.20.0070.03612.00
5.4.10.0050.03611.99
5.4.00.0060.03611.48
5.3.290.0060.04312.80
5.3.280.0060.04212.71
5.3.270.0070.04412.73
5.3.260.0090.03912.72
5.3.250.0090.03412.72
5.3.240.0070.03612.72
5.3.230.0090.03912.71
5.3.220.0050.04512.68
5.3.210.0080.04712.68
5.3.200.0070.03612.68
5.3.190.0040.04212.67
5.3.180.0060.03612.67
5.3.170.0050.04312.67
5.3.160.0080.03812.68
5.3.150.0080.03612.68
5.3.140.0070.03512.66
5.3.130.0040.04312.66
5.3.120.0050.04712.66
5.3.110.0040.04112.66
5.3.100.0060.03712.12
5.3.90.0080.03712.10
5.3.80.0070.03512.09
5.3.70.0140.02912.09
5.3.60.0090.03512.08
5.3.50.0060.03712.03
5.3.40.0040.03812.03
5.3.30.0050.03611.98
5.3.20.0060.03911.77
5.3.10.0060.03411.73
5.3.00.0060.03511.72
5.2.170.0060.0289.22
5.2.160.0050.0399.22
5.2.150.0060.0299.22
5.2.140.0030.0329.22
5.2.130.0030.0389.18
5.2.120.0060.0339.18
5.2.110.0090.0329.18
5.2.100.0090.0259.18
5.2.90.0040.0359.18
5.2.80.0040.0389.18
5.2.70.0050.0329.18
5.2.60.0060.0359.13
5.2.50.0040.0309.10
5.2.40.0060.0339.08
5.2.30.0040.0309.05
5.2.20.0050.0309.04
5.2.10.0030.0298.95
5.2.00.0040.0298.81
5.1.60.0020.0268.09
5.1.50.0060.0278.09
5.1.40.0050.0258.06
5.1.30.0070.0298.41
5.1.20.0050.0308.43
5.1.10.0060.0268.16
5.1.00.0030.0278.16
5.0.50.0030.0216.64
5.0.40.0030.0206.50
5.0.30.0040.0316.32
5.0.20.0020.0216.28
5.0.10.0040.0216.27
5.0.00.0050.0416.26
4.4.90.0050.0204.78
4.4.80.0050.0204.76
4.4.70.0020.0234.75
4.4.60.0050.0194.75
4.4.50.0020.0164.77
4.4.40.0030.0344.71
4.4.30.0040.0144.76
4.4.20.0060.0204.84
4.4.10.0030.0154.85
4.4.00.0060.0244.76
4.3.110.0010.0214.67
4.3.100.0030.0164.67
4.3.90.0030.0164.63
4.3.80.0040.0254.59
4.3.70.0040.0174.63
4.3.60.0040.0144.62
4.3.50.0020.0164.62
4.3.40.0030.0244.54
4.3.30.0040.0143.30
4.3.20.0020.0163.29
4.3.10.0030.0143.24
4.3.00.0100.0237.33

preferences:
118.07 ms | 401 KiB | 5 Q