3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo\Bar; const FOO = 2; function foo() {} class foo { static function staticmethod() {} } // Nome não qualificado foo(); // resolve a função Foo\Bar\foo foo::staticmethod(); // resolve a classe Foo\Bar\foo, método staticmethod echo FOO; // resolve a constante Foo\Bar\FOO echo "\n";

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.40.0100.00718.75
8.3.30.0150.00018.78
8.3.20.0080.00020.32
8.3.10.0070.00021.84
8.3.00.0050.00319.26
8.2.170.0070.01018.80
8.2.160.0070.00722.96
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00819.66
8.2.110.0000.00820.52
8.2.100.0060.00618.22
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0040.00417.34
8.2.60.0000.00817.80
8.2.50.0050.00318.07
8.2.40.0040.00418.22
8.2.30.0000.00718.00
8.2.20.0030.00517.63
8.2.10.0050.00318.10
8.2.00.0000.00717.48
8.1.270.0040.00418.78
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00823.87
8.1.230.0070.00419.17
8.1.220.0080.00017.74
8.1.210.0070.00018.77
8.1.200.0030.00617.22
8.1.190.0040.00417.00
8.1.180.0050.00318.10
8.1.170.0090.00018.49
8.1.160.0040.00422.02
8.1.150.0000.00718.89
8.1.140.0040.00419.09
8.1.130.0070.00017.68
8.1.120.0070.00017.40
8.1.110.0050.00217.30
8.1.100.0000.00717.32
8.1.90.0030.00517.30
8.1.80.0040.00417.36
8.1.70.0030.00317.46
8.1.60.0000.01117.35
8.1.50.0040.00417.46
8.1.40.0030.00617.35
8.1.30.0040.00417.66
8.1.20.0090.00017.58
8.1.10.0050.00317.38
8.1.00.0000.01017.46
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00318.32
8.0.270.0070.00017.14
8.0.260.0030.00318.40
8.0.250.0030.00316.95
8.0.240.0040.00416.96
8.0.230.0040.00416.91
8.0.220.0000.00716.88
8.0.210.0040.00416.86
8.0.200.0030.00316.92
8.0.190.0040.00416.92
8.0.180.0070.00016.90
8.0.170.0040.00416.78
8.0.160.0000.00716.80
8.0.150.0000.00716.79
8.0.140.0040.00416.71
8.0.130.0000.00513.25
8.0.120.0030.00516.86
8.0.110.0000.00716.72
8.0.100.0000.00716.86
8.0.90.0000.00816.69
8.0.80.0120.00916.88
8.0.70.0040.00416.86
8.0.60.0040.00416.89
8.0.50.0000.00716.78
8.0.30.0130.01316.80
8.0.20.0130.00717.40
8.0.10.0000.00716.82
8.0.00.0110.00816.87
7.4.330.0020.00215.03
7.4.320.0040.00416.53
7.4.300.0000.00616.44
7.4.290.0030.00316.43
7.4.280.0050.00316.37
7.4.270.0040.00416.52
7.4.260.0040.00416.41
7.4.250.0000.00816.46
7.4.240.0020.00516.55
7.4.230.0000.00716.28
7.4.220.0060.01816.53
7.4.210.0070.01016.57
7.4.200.0040.00416.37
7.4.160.0060.00916.39
7.4.150.0170.00317.40
7.4.140.0090.00817.86
7.4.130.0090.00816.47
7.4.120.0110.00616.41
7.4.110.0160.00616.48
7.4.100.0100.01016.29
7.4.90.0100.00716.55
7.4.80.0080.01119.39
7.4.70.0100.01016.38
7.4.60.0040.01316.32
7.4.50.0030.00316.41
7.4.40.0080.00816.50
7.4.30.0120.00916.63
7.4.00.0040.00714.85
7.3.330.0060.00013.11
7.3.320.0020.00213.15
7.3.310.0050.00316.18
7.3.300.0030.00316.25
7.3.290.0070.00716.24
7.3.280.0090.00916.34
7.3.270.0150.00417.40
7.3.260.0070.01016.30
7.3.250.0090.00816.50
7.3.240.0120.00616.54
7.3.230.0070.01016.39
7.3.210.0120.00916.23
7.3.200.0140.00419.39
7.3.190.0140.00316.45
7.3.180.0040.01216.43
7.3.170.0120.00616.57
7.3.160.0090.00616.31
7.2.330.0030.01716.37
7.2.320.0080.00916.45
7.2.310.0120.00616.70
7.2.300.0080.00816.76
7.2.290.0110.01816.76
7.2.60.0100.00316.87
7.2.50.0040.01116.98
7.2.00.0040.01119.30
7.1.200.0000.01515.73
7.1.100.0080.00318.06
7.1.70.0000.00716.92
7.1.60.0070.01719.46
7.1.50.0100.01317.02
7.1.00.0000.08022.37
7.0.200.0690.00714.79
7.0.140.0000.03722.08
7.0.60.0100.03719.86
7.0.50.0030.07017.85
7.0.40.0030.06720.27
7.0.30.0330.07320.12
7.0.20.0230.06320.10
7.0.10.0130.07320.08
7.0.00.0030.08720.33
5.6.280.0070.07020.86
5.6.210.0100.03320.47
5.6.200.0070.08718.21
5.6.190.0070.04720.41
5.6.180.0500.06720.64
5.6.170.0170.05720.58
5.6.160.0130.07320.57
5.6.150.0070.04718.20
5.6.140.0030.04018.28
5.6.130.0100.03718.28
5.6.120.0070.07020.98
5.6.110.0230.06021.02
5.6.100.0030.04320.89
5.6.90.0070.09020.99
5.6.80.0130.04720.38
5.5.350.0200.04320.42
5.5.340.0030.06018.08
5.5.330.0130.08020.35
5.5.320.0000.06020.34
5.5.310.0230.07020.38
5.5.300.0070.08017.98
5.5.290.0000.04718.08
5.5.280.0070.08720.77
5.5.270.0100.07020.75
5.5.260.0070.03720.76
5.5.250.0230.05720.61
5.5.240.0000.05020.07
5.4.450.0570.05019.38
5.4.440.0030.07019.49
5.4.430.0130.05019.68
5.4.420.0170.07019.39
5.4.410.0170.04719.26
5.4.400.0130.04719.23
5.4.390.0370.05318.53
5.4.380.0270.05318.59
5.4.370.0530.03318.77
5.4.360.0370.04718.68
5.4.350.0330.07018.68
5.4.340.0230.06018.79
5.4.320.0400.05018.69
5.4.310.0300.06718.68
5.4.300.0330.05718.49
5.4.290.0230.05018.75
5.4.280.0270.05718.81
5.4.270.0330.07018.67
5.4.260.0270.06318.73
5.4.250.0300.05018.71
5.4.240.0100.07318.75
5.4.230.0170.05318.70
5.4.220.0200.05718.61
5.4.210.0170.06318.86
5.4.200.0200.05316.63
5.4.190.0170.06318.74
5.4.180.0370.06318.74
5.4.170.0270.07318.66
5.4.160.0300.05318.73
5.4.150.0270.05318.60
5.4.140.0270.06316.23
5.4.130.0270.05716.47
5.4.120.0230.05016.36
5.4.110.0200.05716.51
5.4.100.0530.06316.24
5.4.90.0300.06316.26
5.4.80.0330.06016.25
5.4.70.0230.06016.24
5.4.60.0230.05016.42
5.4.50.0200.05016.29
5.4.40.0170.05316.21
5.4.30.0330.05716.16
5.4.20.0330.06316.19
5.4.10.0330.06316.18
5.4.00.0770.06015.71
5.3.290.0170.06314.77
5.3.280.0300.05714.57
5.3.270.0230.07014.64
5.3.260.0300.07014.62
5.3.250.0270.05014.71
5.3.240.0200.07714.63
5.3.230.0270.06014.77
5.3.220.0270.06014.59
5.3.210.0130.07014.55
5.3.200.0230.06014.54
5.3.190.0230.05314.77
5.3.180.0270.05314.58
5.3.170.0170.06314.67
5.3.160.0200.05014.67
5.3.150.0230.05314.55
5.3.140.0170.06014.77
5.3.130.0130.06314.58
5.3.120.0270.05014.75
5.3.110.0270.07014.68
5.3.100.0200.06014.03
5.3.90.0130.05714.04
5.3.80.0130.06314.14
5.3.70.0230.07014.06
5.3.60.0330.05713.98
5.3.50.0200.05713.93
5.3.40.0200.05714.18
5.3.30.0130.05713.89
5.3.20.0170.06313.79
5.3.10.0170.06013.68
5.3.00.0370.04313.86
5.2.170.0270.03711.32
5.2.160.0330.05011.18
5.2.150.0100.04711.18
5.2.140.0170.05011.14
5.2.130.0230.03711.16
5.2.120.0170.04711.15
5.2.110.0200.03711.11
5.2.100.0130.04311.14
5.2.90.0330.03311.04
5.2.80.0170.04311.07
5.2.70.0100.05011.03
5.2.60.0270.04011.02
5.2.50.0170.04010.99
5.2.40.0170.04010.97
5.2.30.0170.04310.93
5.2.20.0170.05310.91
5.2.10.0200.04711.02
5.2.00.0200.03310.69
5.1.60.0200.03310.09
5.1.50.0230.02710.01
5.1.40.0200.02710.02
5.1.30.0130.04310.49
5.1.20.0100.04010.49
5.1.10.0170.03010.10
5.1.00.0070.04310.18
5.0.50.0170.0238.56
5.0.40.0130.0238.38
5.0.30.0100.0478.22
5.0.20.0100.0278.23
5.0.10.0070.0308.18
5.0.00.0130.0408.25
4.4.90.0100.0235.90
4.4.80.0000.0275.88
4.4.70.0100.0205.93
4.4.60.0000.0335.87
4.4.50.0000.0335.88
4.4.40.0070.0375.92
4.4.30.0030.0235.87
4.4.20.0070.0235.96
4.4.10.0100.0205.98
4.4.00.0070.0375.93
4.3.110.0100.0205.82
4.3.100.0070.0235.82
4.3.90.0100.0175.86
4.3.80.0130.0275.82
4.3.70.0070.0275.79
4.3.60.0070.0275.79
4.3.50.0030.0335.82
4.3.40.0070.0435.83
4.3.30.0000.0274.61
4.3.20.0070.0234.59
4.3.10.0070.0234.49
4.3.00.0070.0239.38

preferences:
70.95 ms | 400 KiB | 5 Q