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=('.strval($operande1).")".$operation."(".strval($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.0110.00416.72
8.3.60.0030.01418.56
8.3.50.0140.00522.03
8.3.40.0040.01118.91
8.3.30.0070.00719.17
8.3.20.0000.00720.34
8.3.10.0050.00321.87
8.3.00.0080.00019.33
8.2.180.0070.01016.38
8.2.170.0110.00722.96
8.2.160.0060.00920.52
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00421.96
8.2.110.0090.00021.00
8.2.100.0120.00017.91
8.2.90.0080.00019.13
8.2.80.0030.00617.97
8.2.70.0050.00317.50
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0040.00419.95
8.2.30.0040.00418.11
8.2.20.0070.00317.63
8.2.10.0000.00718.04
8.2.00.0100.00017.75
8.1.280.0070.01425.92
8.1.270.0000.00722.06
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00717.45
8.1.230.0080.00320.91
8.1.220.0000.00817.78
8.1.210.0000.00918.77
8.1.200.0040.00417.35
8.1.190.0030.00617.35
8.1.180.0050.00318.10
8.1.170.0050.00318.64
8.1.160.0050.00321.97
8.1.150.0000.00718.89
8.1.140.0030.00517.45
8.1.130.0090.00017.82
8.1.120.0030.00517.38
8.1.110.0050.00317.43
8.1.100.0070.00017.49
8.1.90.0040.00417.42
8.1.80.0000.00817.49
8.1.70.0030.00317.42
8.1.60.0060.00317.56
8.1.50.0060.00317.55
8.1.40.0070.00017.50
8.1.30.0040.00417.56
8.1.20.0030.00517.62
8.1.10.0020.00517.58
8.1.00.0050.00317.38
8.0.300.0000.00719.55
8.0.290.0090.00016.63
8.0.280.0000.00718.39
8.0.270.0000.00717.20
8.0.260.0000.00817.13
8.0.250.0030.00316.98
8.0.240.0070.00016.90
8.0.230.0030.00316.85
8.0.220.0050.00316.79
8.0.210.0000.00716.80
8.0.200.0000.00717.01
8.0.190.0030.00616.98
8.0.180.0000.00716.92
8.0.170.0030.00516.81
8.0.160.0030.00316.77
8.0.150.0030.00516.85
8.0.140.0000.00716.82
8.0.130.0000.00613.42
8.0.120.0030.00616.83
8.0.110.0040.00416.94
8.0.100.0000.00716.93
8.0.90.0040.00416.85
8.0.80.0150.00016.92
8.0.70.0050.00316.73
8.0.60.0000.00716.93
8.0.50.0040.00416.80
8.0.30.0090.01417.06
8.0.20.0110.01017.41
8.0.10.0000.00817.00
8.0.00.0090.01016.76
7.4.330.0020.00315.00
7.4.320.0030.00316.50
7.4.300.0030.00316.52
7.4.290.0040.00416.61
7.4.280.0000.00916.57
7.4.270.0000.00616.64
7.4.260.0040.00416.39
7.4.250.0040.00416.38
7.4.240.0020.00516.46
7.4.230.0000.00716.45
7.4.220.0140.00516.47
7.4.210.0090.01216.65
7.4.200.0030.00316.35
7.4.160.0150.00016.50
7.4.150.0130.00917.40
7.4.140.0080.01117.86
7.4.130.0150.00516.54
7.4.120.0120.00416.58
7.4.110.0130.01016.47
7.4.100.0100.01016.58
7.4.90.0120.00616.49
7.4.80.0060.01219.39
7.4.70.0130.00316.48
7.4.60.0120.00616.31
7.4.50.0030.00616.38
7.4.40.0030.01416.56
7.4.30.0150.00616.43
7.4.00.0080.00615.05
7.3.330.0040.00413.14
7.3.320.0030.00313.30
7.3.310.0070.00016.31
7.3.300.0000.00616.16
7.3.290.0120.00416.38
7.3.280.0080.00916.27
7.3.270.0100.01317.40
7.3.260.0030.01316.37
7.3.250.0100.01216.47
7.3.240.0070.01016.36
7.3.230.0070.01016.59
7.3.210.0070.01116.71
7.3.200.0030.01819.39
7.3.190.0070.01016.62
7.3.180.0030.01316.48
7.3.170.0130.00416.41
7.3.160.0110.00416.36
7.3.00.0150.00416.59
7.2.330.0090.00916.46
7.2.320.0100.00716.79
7.2.310.0100.00716.52
7.2.300.0070.01116.73
7.2.290.0060.01016.71
7.2.130.0110.00516.54
7.2.120.0100.01016.63
7.2.110.0150.00416.88
7.2.100.0060.01216.87
7.2.90.0040.01316.95
7.2.80.0150.00916.77
7.2.70.0070.01017.07
7.2.60.0240.01516.76
7.2.50.0170.00317.00
7.2.40.0230.00516.94
7.2.30.0130.01016.95
7.2.20.0110.01116.71
7.2.10.0100.00916.96
7.2.00.0110.01116.87
7.1.250.0070.01115.69
7.1.240.0130.00415.66
7.1.230.0030.01215.74
7.1.220.0040.01515.62
7.1.210.0040.00915.58
7.1.200.0190.00515.36
7.1.190.0130.00315.60
7.1.180.0120.00715.33
7.1.170.0170.00915.84
7.1.160.0150.01215.63
7.1.150.0030.01215.59
7.1.140.0090.01215.46
7.1.130.0110.00615.83
7.1.120.0070.00715.77
7.1.110.0050.01115.89
7.1.100.0240.01015.30
7.1.90.0060.00915.74
7.1.80.0100.00315.71
7.1.70.0050.00716.46
7.1.60.0050.00717.44
7.1.50.0060.01016.28
7.1.40.0070.00715.69
7.1.30.0130.00415.68
7.1.20.0080.00415.71
7.1.10.0070.00715.66
7.1.00.0130.03919.08
7.0.330.0070.00715.46
7.0.320.0120.00415.18
7.0.310.0110.00015.27
7.0.300.0110.00915.37
7.0.290.0100.00515.53
7.0.280.0040.01315.34
7.0.270.0030.01115.36
7.0.260.0030.01015.52
7.0.250.0090.00615.23
7.0.240.0070.01115.46
7.0.230.0030.00715.43
7.0.220.0030.00815.46
7.0.210.0030.00615.64
7.0.200.0060.00515.95
7.0.190.0000.01415.05
7.0.180.0120.00415.18
7.0.170.0040.00715.47
7.0.160.0090.00215.55
7.0.150.0000.01115.30
7.0.140.0080.04218.77
7.0.130.0090.00015.59
7.0.120.0060.00615.41
7.0.110.0130.00015.44
7.0.100.0140.00415.54
7.0.90.0000.01115.18
7.0.80.0000.01115.60
7.0.70.0090.00615.50
7.0.60.0110.04317.60
7.0.50.0050.02516.80
7.0.40.0130.02916.80
7.0.30.0140.02916.83
7.0.20.0210.04016.71
7.0.10.0150.04316.77
7.0.00.0110.04516.86
5.6.380.0080.01114.12
5.6.370.0100.00614.14
5.6.360.0120.00614.07
5.6.350.0060.00614.36
5.6.340.0070.01014.41
5.6.330.0110.00814.29
5.6.320.0090.00714.39
5.6.310.0110.00814.22
5.6.300.0060.00614.13
5.6.290.0270.00714.46
5.6.280.0040.04117.79
5.6.270.0060.00914.50
5.6.260.0070.01014.18
5.6.250.0120.00014.34
5.6.240.0130.00314.37
5.6.230.0090.00614.04
5.6.220.0070.00714.44
5.6.210.0090.04217.45
5.6.200.0040.04016.24
5.6.190.0020.02917.64
5.6.180.0120.02917.38
5.6.170.0140.04217.41
5.6.160.0150.04317.31
5.6.150.0160.04116.21
5.6.140.0070.02716.16
5.6.130.0100.04016.14
5.6.120.0060.04417.64
5.6.110.0090.04217.71
5.6.100.0090.04417.58
5.6.90.0110.03617.64
5.6.80.0110.04117.19
5.6.70.0110.00414.07
5.6.60.0070.00714.12
5.6.50.0070.00714.43
5.6.40.0030.00614.18
5.6.30.0030.00614.25
5.6.20.0060.00314.21
5.6.10.0000.01114.34
5.6.00.0040.00714.27
5.5.380.0000.01011.11
5.5.370.0070.00311.11
5.5.360.0150.00911.12
5.5.350.0100.03815.61
5.5.340.0080.04214.64
5.5.330.0170.02015.61
5.5.320.0180.02715.64
5.5.310.0170.02215.60
5.5.300.0070.03914.51
5.5.290.0010.04614.59
5.5.280.0070.02315.74
5.5.270.0030.03716.03
5.5.260.0030.04915.79
5.5.250.0070.03415.91
5.5.240.0150.03715.54
5.5.230.0060.00611.00
5.5.220.0070.00311.03
5.5.210.0000.01311.13
5.5.200.0030.00711.20
5.5.190.0030.00911.14
5.5.180.0030.00310.97
5.5.170.0030.00611.20
5.5.160.0000.00611.18
5.5.150.0070.00310.98
5.5.140.0030.00710.90
5.5.130.0070.00311.09
5.5.120.0030.00910.97
5.5.110.0070.00410.99
5.5.100.0070.00410.82
5.5.90.0030.00610.68
5.5.80.0030.00710.95
5.5.70.0030.00711.13
5.5.60.0090.00011.13
5.5.50.0050.00511.01
5.5.40.0000.01110.93
5.5.30.0040.00411.20
5.5.20.0040.00410.79
5.5.10.0060.00610.91
5.5.00.0040.01111.02
5.4.450.0180.02715.40
5.4.440.0490.04015.19
5.4.430.0520.03015.16
5.4.420.0350.00215.24
5.4.410.0340.00215.21
5.4.400.0330.00415.01
5.4.390.0330.00515.12
5.4.380.0330.00515.13
5.4.370.0330.00515.26
5.4.360.0330.00214.98
5.4.350.0370.00015.12
5.4.340.0050.02411.35
5.4.330.0000.01111.11
5.4.320.0040.02311.78
5.4.310.0050.02811.79
5.4.300.0060.02411.75
5.4.290.0080.02311.61
5.4.280.0060.02211.72
5.4.270.0050.02011.56
5.4.260.0030.02211.66
5.4.250.0050.02211.62
5.4.240.0070.02311.64
5.4.230.0040.02411.65
5.4.220.0080.01911.67
5.4.210.0050.02611.74
5.4.200.0070.01911.57
5.4.190.0070.02111.75
5.4.180.0060.02211.75
5.4.170.0070.02111.74
5.4.160.0110.02111.55
5.4.150.0040.02511.80
5.4.140.0080.02511.38
5.4.130.0060.02211.55
5.4.120.0070.02211.42
5.4.110.0070.01811.59
5.4.100.0080.01811.53
5.4.90.0090.02211.36
5.4.80.0030.02811.51
5.4.70.0050.02111.44
5.4.60.0090.01811.54
5.4.50.0060.02011.43
5.4.40.0020.02311.50
5.4.30.0060.02111.49
5.4.20.0050.02111.46
5.4.10.0060.02211.53
5.4.00.0040.02211.31
5.3.290.0050.02211.71
5.3.280.0040.02111.64
5.3.270.0060.02211.60
5.3.260.0030.02411.66
5.3.250.0020.02311.69
5.3.240.0080.01811.46
5.3.230.0060.02111.54
5.3.220.0040.02111.57
5.3.210.0050.02411.57
5.3.200.0040.02311.58
5.3.190.0040.02711.60
5.3.180.0070.02011.49
5.3.170.0090.02611.63
5.3.160.0050.02211.66
5.3.150.0050.02411.66
5.3.140.0080.02411.67
5.3.130.0020.02311.49
5.3.120.0050.02211.66
5.3.110.0070.02111.57
5.3.100.0050.02211.33
5.3.90.0070.01811.40
5.3.80.0070.02111.28
5.3.70.0050.01911.30
5.3.60.0040.02011.33
5.3.50.0060.01911.29
5.3.40.0060.02011.27
5.3.30.0020.02611.34
5.3.20.0060.02111.16
5.3.10.0070.01911.01
5.3.00.0040.02310.91
5.2.170.0040.0219.31
5.2.160.0040.0209.33
5.2.150.0040.0179.26
5.2.140.0030.0209.37
5.2.130.0040.0189.35
5.2.120.0050.0199.36
5.2.110.0040.0179.44
5.2.100.0040.0189.37
5.2.90.0040.0199.34
5.2.80.0020.0229.28
5.2.70.0080.0159.29
5.2.60.0050.0169.24
5.2.50.0060.0169.20
5.2.40.0050.0189.23
5.2.30.0030.0169.24
5.2.20.0080.0149.17
5.2.10.0020.0179.14
5.2.00.0040.0169.05
5.1.60.0070.0118.69
5.1.50.0020.0168.69
5.1.40.0050.0148.68
5.1.30.0050.0158.86
5.1.20.0030.0168.86
5.1.10.0060.0168.73
5.1.00.0050.0178.73
5.0.50.0030.0137.97
5.0.40.0050.0187.90
5.0.30.0020.0227.80
5.0.20.0020.0147.79
5.0.10.0010.0167.78
5.0.00.0020.0207.77
4.4.90.0040.0107.04
4.4.80.0020.0097.02
4.4.70.0020.0127.03
4.4.60.0020.0107.02
4.4.50.0030.0107.03
4.4.40.0020.0137.00
4.4.30.0030.0107.03
4.4.20.0040.0097.07
4.4.10.0020.0097.07
4.4.00.0030.0147.03
4.3.110.0030.0106.98
4.3.100.0030.0106.98
4.3.90.0030.0096.96
4.3.80.0030.0126.94
4.3.70.0030.0086.96
4.3.60.0010.0136.96
4.3.50.0010.0126.96
4.3.40.0030.0136.92
4.3.30.0020.0106.30
4.3.20.0020.0146.29
4.3.10.0010.0126.27
4.3.00.0050.0138.29

preferences:
29.63 ms | 401 KiB | 5 Q