3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace MyProject; const CONSTANT ='asdf'; function mine() { var_dump('mine'); } function func() { var_dump('func'); } class CName { function __construct() { var_dump('__contruct'); } static function method() { var_dump('method'); } } namespace\mine(); // calls function MyProject\blah\mine() namespace\func(); // calls function MyProject\func() namespace\cname::method(); // calls static method "method" of class MyProject\cname $a = new namespace\cname(); // instantiates object of class MyProject\sub\cname $b = namespace\CONSTANT; // assigns value of constant MyProject\CONSTANT to $b ?>

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.60.0100.01018.43
8.3.50.0120.00721.14
8.3.40.0150.00018.51
8.3.30.0110.00420.17
8.3.20.0040.00420.25
8.3.10.0040.00422.09
8.3.00.0070.00022.43
8.2.180.0080.00816.50
8.2.170.0070.00722.96
8.2.160.0070.00722.08
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0070.00020.75
8.2.110.0030.00720.41
8.2.100.0110.00017.72
8.2.90.0080.00018.98
8.2.80.0000.00719.41
8.2.70.0040.00417.63
8.2.60.0030.00617.93
8.2.50.0030.00618.07
8.2.40.0080.00018.15
8.2.30.0070.00019.36
8.2.20.0040.00417.52
8.2.10.0040.00417.71
8.2.00.0070.00017.59
8.1.280.0100.01025.92
8.1.270.0030.00523.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0050.00523.79
8.1.230.0120.00020.98
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00717.36
8.1.190.0040.00417.16
8.1.180.0040.00418.10
8.1.170.0030.00618.55
8.1.160.0000.00718.87
8.1.150.0030.00518.52
8.1.140.0040.00417.38
8.1.130.0030.00317.87
8.1.120.0040.00417.48
8.1.110.0030.00317.43
8.1.100.0040.00417.43
8.1.90.0000.00717.47
8.1.80.0070.00017.44
8.1.70.0000.00817.35
8.1.60.0030.00617.57
8.1.50.0000.00717.50
8.1.40.0030.00617.52
8.1.30.0030.00517.56
8.1.20.0050.00317.55
8.1.10.0000.00717.53
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0040.00418.35
8.0.270.0000.00717.17
8.0.260.0000.00716.88
8.0.250.0040.00416.92
8.0.240.0070.00316.85
8.0.230.0040.00416.93
8.0.220.0070.00016.79
8.0.210.0030.00316.95
8.0.200.0060.00016.92
8.0.190.0000.00716.86
8.0.180.0080.00016.82
8.0.170.0000.00916.90
8.0.160.0080.00016.88
8.0.150.0000.00716.83
8.0.140.0090.00016.84
8.0.130.0060.00013.27
8.0.120.0040.00416.83
8.0.110.0040.00416.93
8.0.100.0050.00216.81
8.0.90.0000.00716.93
8.0.80.0040.01116.88
8.0.70.0040.00416.75
8.0.60.0050.00316.94
8.0.50.0070.00016.71
8.0.30.0110.00916.90
8.0.20.0070.01217.40
8.0.10.0040.00416.81
8.0.00.0080.01516.68
7.4.330.0050.00016.79
7.4.320.0060.00016.42
7.4.300.0000.00616.60
7.4.290.0030.00316.43
7.4.280.0000.00716.41
7.4.270.0030.00316.63
7.4.260.0050.00013.29
7.4.250.0000.00816.56
7.4.240.0020.00516.58
7.4.230.0000.00716.49
7.4.220.0090.00916.54
7.4.210.0070.01016.51
7.4.200.0060.00016.68
7.4.190.0030.00316.54
7.4.160.0080.00816.67
7.4.150.0120.00617.40
7.4.140.0150.00417.86
7.4.130.0080.00916.43
7.4.120.0100.00916.55
7.4.110.0060.01216.52
7.4.100.0100.00716.51
7.4.90.0160.01016.62
7.4.80.0040.01519.39
7.4.70.0110.00516.63
7.4.60.0120.00616.31
7.4.50.0040.00416.43
7.4.40.0040.01122.77
7.4.30.0070.01016.74
7.4.00.0060.01015.05
7.3.330.0060.00013.27
7.3.320.0000.00513.30
7.3.310.0000.00616.34
7.3.300.0000.00716.17
7.3.290.0050.01016.27
7.3.280.0090.00716.33
7.3.270.0150.00617.40
7.3.260.0110.00716.55
7.3.250.0100.00616.49
7.3.240.0080.00916.51
7.3.230.0090.00816.39
7.3.210.0130.00716.38
7.3.200.0160.00019.39
7.3.190.0080.00816.31
7.3.180.0000.01616.38
7.3.170.0140.01116.29
7.3.160.0060.00916.27
7.3.120.0070.01014.75
7.3.110.0140.00314.62
7.3.100.0000.01215.04
7.3.90.0030.01314.70
7.3.80.0100.00314.82
7.3.70.0090.00614.66
7.3.60.0040.00814.62
7.3.50.0060.01114.70
7.3.40.0070.00714.75
7.3.30.0080.00414.71
7.3.20.0070.00716.68
7.3.10.0040.01116.80
7.3.00.0060.01016.67
7.2.330.0040.01416.59
7.2.320.0090.00916.73
7.2.310.0070.01316.81
7.2.300.0090.00916.50
7.2.290.0090.01316.79
7.2.240.0060.01015.25
7.2.230.0030.01014.88
7.2.220.0060.00914.90
7.2.210.0030.01315.19
7.2.200.0040.00714.73
7.2.190.0060.01014.86
7.2.180.0110.00014.84
7.2.170.0000.01115.15
7.2.160.0110.00314.74
7.2.150.0030.00916.64
7.2.140.0100.00316.80
7.2.130.0070.00416.82
7.2.120.0070.00716.92
7.2.110.0070.00716.86
7.2.100.0000.00916.86
7.2.90.0040.01117.04
7.2.80.0070.01016.99
7.2.70.0060.00916.90
7.2.60.0000.01316.98
7.2.50.0100.00316.80
7.2.40.0140.00016.96
7.2.30.0030.00616.57
7.2.20.0040.00816.95
7.2.10.0000.01016.86
7.2.00.0060.00618.05
7.1.330.0040.01115.61
7.1.320.0030.01015.61
7.1.310.0070.00715.72
7.1.300.0030.01015.37
7.1.290.0070.01015.66
7.1.280.0030.00615.69
7.1.270.0090.00615.48
7.1.260.0060.01015.49
7.1.250.0030.00615.68
7.1.100.0130.00418.21
7.1.70.0070.00317.06
7.1.60.0070.01819.17
7.1.50.0140.01116.58
7.1.00.0030.03322.45
7.0.200.0000.00716.72
7.0.140.0070.07021.95
7.0.100.0100.06319.96
7.0.90.0430.07719.98
7.0.80.0430.07319.89
7.0.70.0470.08019.88
7.0.60.0430.07319.86
7.0.50.0600.05720.35
7.0.40.0030.06020.03
7.0.30.0200.06720.08
7.0.20.0130.04320.11
7.0.10.0170.07720.08
7.0.00.0170.07019.99
5.6.280.0000.08021.08
5.6.250.0000.07320.61
5.6.240.0030.08720.53
5.6.230.0100.06020.67
5.6.220.0070.04720.59
5.6.210.0100.08020.75
5.6.200.0100.08020.97
5.6.190.0200.06721.10
5.6.180.0070.08021.02
5.6.170.0100.08021.09
5.6.160.0130.05021.09
5.6.150.0100.08021.03
5.6.140.0130.06021.02
5.6.130.0070.09021.18
5.6.120.0100.08321.01
5.6.110.0030.08721.06
5.6.100.0030.09021.09
5.6.90.0030.07721.03
5.6.80.0130.06320.46
5.6.70.0100.07720.47
5.6.60.0070.07720.48
5.6.50.0070.08020.50
5.6.40.0100.06720.38
5.6.30.0130.04720.48
5.6.20.0030.08020.38
5.6.10.0070.08320.49
5.6.00.0130.07020.53
5.5.380.0070.08020.40
5.5.370.0100.08020.45
5.5.360.0170.07020.40
5.5.350.0100.04720.38
5.5.340.0070.06320.82
5.5.330.0170.07020.83
5.5.320.0100.08720.73
5.5.310.0130.07320.87
5.5.300.0170.06720.77
5.5.290.0130.07320.81
5.5.280.0130.07320.93
5.5.270.0170.07320.88
5.5.260.0100.08320.73
5.5.250.0070.05020.62
5.5.240.0100.08020.19
5.5.230.0170.06720.14
5.5.220.0130.07320.25
5.5.210.0070.07720.19
5.5.200.0030.08720.28
5.5.190.0070.08020.16
5.5.180.0100.08020.23
5.5.160.0100.05720.28
5.5.150.0030.08020.27
5.5.140.0100.07320.09
5.5.130.0130.07320.27
5.5.120.0100.07720.16
5.5.110.0000.08320.03
5.5.100.0070.05319.93
5.5.90.0100.07720.16
5.5.80.0070.07020.13
5.5.70.0070.06320.11
5.5.60.0070.07020.07
5.5.50.0100.07720.16
5.5.40.0170.06720.06
5.5.30.0070.05020.09
5.5.20.0070.08020.05
5.5.10.0030.08320.12
5.5.00.0100.07720.10
5.4.450.0030.05019.36
5.4.440.0100.07719.57
5.4.430.0070.07019.53
5.4.420.0100.07719.27
5.4.410.0100.07019.29
5.4.400.0100.07019.22
5.4.390.0100.04319.13
5.4.380.0100.05319.16
5.4.370.0070.06719.10
5.4.360.0100.07019.13
5.4.350.0070.05719.13
5.4.340.0100.06719.09
5.4.320.0130.06718.96
5.4.310.0070.07719.19
5.4.300.0070.05719.16
5.4.290.0030.06019.04
5.4.280.0170.07019.15
5.4.270.0170.06719.23
5.4.260.0030.07718.90
5.4.250.0030.07718.94
5.4.240.0170.06719.25
5.4.230.0100.07019.04
5.4.220.0130.06718.84
5.4.210.0100.06719.18
5.4.200.0130.06719.02
5.4.190.0200.06019.05
5.4.180.0100.06718.87
5.4.170.0030.05019.12
5.4.160.0130.07019.17
5.4.150.0100.07319.07
5.4.140.0100.07016.41
5.4.130.0100.07316.48
5.4.120.0070.07316.51
5.4.110.0130.06716.43
5.4.100.0130.04016.48
5.4.90.0070.04316.49
5.4.80.0170.06716.38
5.4.70.0070.04316.38
5.4.60.0030.07316.46
5.4.50.0100.06716.32
5.4.40.0130.06316.36
5.4.30.0030.04316.32
5.4.20.0100.04316.21
5.4.10.0000.07716.26
5.4.00.0070.07715.79
5.3.290.0070.07314.70
5.3.280.0070.07714.62
5.3.270.0070.06014.53
5.3.260.0130.07014.72
5.3.250.0070.07314.67
5.3.240.0030.07314.66
5.3.230.0030.07314.66
5.3.220.0030.08014.50
5.3.210.0030.07314.49
5.3.200.0100.06714.68
5.3.190.0030.08314.62
5.3.180.0070.06714.52
5.3.170.0100.07014.63
5.3.160.0000.08314.49
5.3.150.0100.06714.63
5.3.140.0000.08014.54
5.3.130.0070.07714.64
5.3.120.0130.07314.60
5.3.110.0030.04714.56
5.3.100.0130.06714.03
5.3.90.0100.07014.01
5.3.80.0030.07714.16
5.3.70.0070.07714.13
5.3.60.0130.06314.07
5.3.50.0170.06313.88
5.3.40.0030.07713.98
5.3.30.0070.07013.80
5.3.20.0070.07313.63
5.3.10.0070.07013.73
5.3.00.0030.07313.58
5.2.170.0030.06310.99
5.2.160.0200.05011.11
5.2.150.0100.05011.09
5.2.140.0070.06311.13
5.2.130.0100.05710.94
5.2.120.0000.06010.92
5.2.110.0130.05311.09
5.2.100.0030.06311.17
5.2.90.0030.06311.02
5.2.80.0030.05011.09
5.2.70.0100.05311.16
5.2.60.0100.05311.11
5.2.50.0030.04710.93
5.2.40.0070.05710.84
5.2.30.0070.06010.97
5.2.20.0070.06010.96
5.2.10.0000.05710.91
5.2.00.0070.06010.73
5.1.60.0030.0579.99
5.1.50.0030.0539.98
5.1.40.0100.04010.06
5.1.30.0070.05310.38
5.1.20.0000.06010.37
5.1.10.0100.0509.91
5.1.00.0100.0509.91
5.0.50.0030.0478.60
5.0.40.0000.0478.49
5.0.30.0030.0638.27
5.0.20.0000.0478.28
5.0.10.0030.0478.28
5.0.00.0070.0638.16
4.4.90.0000.0278.16
4.4.80.0000.0308.16
4.4.70.0070.0338.16
4.4.60.0070.0338.16
4.4.50.0030.0338.16
4.4.40.0030.0538.16
4.4.30.0000.0378.16
4.4.20.0030.0378.16
4.4.10.0030.0378.16
4.4.00.0070.0508.16
4.3.110.0030.0338.16
4.3.100.0030.0338.16
4.3.90.0030.0338.16
4.3.80.0000.0538.16
4.3.70.0030.0338.16
4.3.60.0000.0278.16
4.3.50.0030.0278.16
4.3.40.0030.0408.16
4.3.30.0030.0338.16
4.3.20.0000.0378.16
4.3.10.0070.0338.16
4.3.00.0000.0378.16

preferences:
40.26 ms | 401 KiB | 5 Q