3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace MyProject; use blah\blah as mine; // see "Using namespaces: importing/aliasing" blah\mine(); // calls function MyProject\blah\mine() namespace\blah\mine(); // calls function MyProject\blah\mine() namespace\func(); // calls function MyProject\func() namespace\sub\func(); // calls function MyProject\sub\func() namespace\cname::method(); // calls static method "method" of class MyProject\cname $a = new namespace\sub\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.0110.00718.32
8.3.50.0100.01021.21
8.3.40.0030.01518.77
8.3.30.0070.00720.23
8.3.20.0040.00420.30
8.3.10.0040.00421.79
8.3.00.0080.00022.44
8.2.180.0150.00016.75
8.2.170.0110.00322.96
8.2.160.0070.00722.11
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00020.75
8.2.110.0060.00320.29
8.2.100.0090.00319.64
8.2.90.0050.00319.09
8.2.80.0040.00419.38
8.2.70.0040.00417.48
8.2.60.0040.00717.80
8.2.50.0000.00818.07
8.2.40.0050.00318.09
8.2.30.0030.00719.31
8.2.20.0070.00017.57
8.2.10.0000.00817.63
8.2.00.0040.00417.69
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.02
8.1.230.0080.00320.71
8.1.220.0040.00418.40
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0000.00817.55
8.1.180.0000.00818.10
8.1.170.0050.00518.50
8.1.160.0000.00718.81
8.1.150.0000.00718.52
8.1.140.0040.00417.32
8.1.130.0030.00317.76
8.1.120.0000.00817.40
8.1.110.0060.00317.37
8.1.100.0040.00417.36
8.1.90.0070.00017.24
8.1.80.0040.00417.19
8.1.70.0000.00717.16
8.1.60.0030.00617.39
8.1.50.0050.00217.41
8.1.40.0050.00217.50
8.1.30.0000.00817.58
8.1.20.0050.00317.59
8.1.10.0040.00417.39
8.1.00.0090.00017.46
8.0.300.0000.00818.77
8.0.290.0000.00817.03
8.0.280.0000.00818.38
8.0.270.0030.00317.11
8.0.260.0000.00816.74
8.0.250.0030.00316.96
8.0.240.0030.00716.89
8.0.230.0030.00316.97
8.0.220.0070.00016.89
8.0.210.0000.00716.89
8.0.200.0000.00616.86
8.0.190.0070.00016.93
8.0.180.0030.00516.80
8.0.170.0000.00816.79
8.0.160.0030.00316.75
8.0.150.0030.00316.79
8.0.140.0000.00916.86
8.0.130.0030.00313.31
8.0.120.0080.00016.75
8.0.110.0070.00016.85
8.0.100.0070.00016.99
8.0.90.0050.00216.79
8.0.80.0100.01016.86
8.0.70.0070.00016.91
8.0.60.0050.00316.89
8.0.50.0040.00416.71
8.0.30.0140.00517.08
8.0.20.0120.00717.40
8.0.10.0030.00516.75
8.0.00.0160.00616.60
7.4.330.0030.00316.79
7.4.320.0000.00616.47
7.4.300.0030.00316.41
7.4.290.0000.00716.59
7.4.280.0060.00016.52
7.4.270.0000.00716.45
7.4.260.0060.00013.22
7.4.250.0000.00716.51
7.4.240.0020.00516.43
7.4.230.0030.00316.42
7.4.220.0090.00916.52
7.4.210.0090.00616.55
7.4.200.0000.00716.34
7.4.190.0000.00716.71
7.4.160.0090.01216.54
7.4.150.0170.00017.40
7.4.140.0160.01117.86
7.4.130.0110.00716.42
7.4.120.0070.01016.54
7.4.110.0060.01116.29
7.4.100.0100.00616.68
7.4.90.0140.00316.34
7.4.80.0140.00319.39
7.4.70.0060.00916.28
7.4.60.0060.01016.59
7.4.50.0040.00416.29
7.4.40.0070.00722.77
7.4.30.0080.00916.54
7.4.00.0000.01514.59
7.3.330.0000.00513.11
7.3.320.0050.00013.11
7.3.310.0070.00016.36
7.3.300.0030.00316.30
7.3.290.0060.01316.25
7.3.280.0100.00816.27
7.3.270.0090.00817.40
7.3.260.0140.00616.36
7.3.250.0100.00716.38
7.3.240.0070.01016.49
7.3.230.0060.01316.61
7.3.210.0140.00316.57
7.3.200.0070.01019.39
7.3.190.0140.00616.47
7.3.180.0090.00916.46
7.3.170.0130.00316.27
7.3.160.0090.01216.44
7.3.120.0100.00615.02
7.3.10.0190.00816.35
7.3.00.0070.01016.11
7.2.330.0070.01016.22
7.2.320.0130.00316.44
7.2.310.0090.00616.43
7.2.300.0110.00616.49
7.2.290.0030.01716.55
7.2.130.0110.01116.65
7.2.120.0110.01116.29
7.2.110.0210.00016.43
7.2.100.0110.01416.20
7.2.90.0210.00316.41
7.2.80.0150.01216.52
7.2.70.0160.00516.53
7.2.60.0130.00916.18
7.2.50.0290.00816.48
7.2.40.0150.00916.36
7.2.30.0060.01516.02
7.2.20.0200.00316.26
7.2.10.0130.01016.19
7.2.00.0110.01117.97
7.1.250.0160.01015.36
7.1.200.0120.00015.73
7.1.100.0040.00817.69
7.1.70.0000.00817.14
7.1.60.0110.01419.17
7.1.50.0070.01716.53
7.1.00.0070.03022.40
7.0.200.0000.00716.61
7.0.140.0030.07721.92
7.0.70.0000.05321.73
7.0.60.0070.08321.58
7.0.50.0070.04322.12
7.0.40.0070.08319.95
7.0.30.0000.08720.06
7.0.20.0000.07020.03
7.0.10.0030.06720.07
7.0.00.0000.09020.04
5.6.280.0000.07721.08
5.6.220.0030.04020.48
5.6.210.0030.08320.61
5.6.200.0030.08320.92
5.6.190.0100.06021.03
5.6.180.0030.07721.02
5.6.170.0100.06721.11
5.6.160.0130.07721.11
5.6.150.0030.08721.04
5.6.140.0100.07321.05
5.6.130.0100.05720.99
5.6.120.0030.08721.11
5.6.110.0070.08321.10
5.6.100.0100.05320.89
5.6.90.0070.05720.89
5.6.80.0030.07720.29
5.6.70.0030.08320.29
5.6.60.0070.07020.28
5.6.50.0070.08020.46
5.6.40.0030.08320.42
5.6.30.0030.07320.45
5.6.20.0070.07320.35
5.6.10.0100.07720.37
5.6.00.0100.06020.28
5.5.360.0170.07320.34
5.5.350.0030.08320.46
5.5.340.0030.05020.87
5.5.330.0100.04020.73
5.5.320.0000.08020.93
5.5.310.0030.08320.88
5.5.300.0070.04320.90
5.5.290.0030.08020.64
5.5.280.0070.08320.79
5.5.270.0030.06020.71
5.5.260.0030.05020.62
5.5.250.0000.09020.65
5.5.240.0030.07320.29
5.5.230.0070.07020.29
5.5.220.0070.03720.30
5.5.210.0130.06720.19
5.5.200.0030.08320.20
5.5.190.0070.07720.22
5.5.180.0130.05320.14
5.5.160.0030.08020.08
5.5.150.0030.07320.16
5.5.140.0030.08319.97
5.5.130.0000.06320.26
5.5.120.0070.08020.25
5.5.110.0070.07720.13
5.5.100.0030.04020.07
5.5.90.0030.07020.04
5.5.80.0030.04720.08
5.5.70.0000.08020.14
5.5.60.0070.06320.14
5.5.50.0070.07720.13
5.5.40.0030.08020.08
5.5.30.0000.07319.92
5.5.20.0070.08020.05
5.5.10.0100.07719.96
5.5.00.0100.07320.11
5.4.450.0000.08719.29
5.4.440.0030.06019.44
5.4.430.0100.07719.55
5.4.420.0000.04719.39
5.4.410.0000.04319.23
5.4.400.0000.08319.06
5.4.390.0030.04718.83
5.4.380.0030.04719.02
5.4.370.0030.04719.10
5.4.360.0000.06319.13
5.4.350.0030.08019.12
5.4.340.0000.08018.95
5.4.320.0030.08018.79
5.4.310.0100.04319.23
5.4.300.0100.06019.22
5.4.290.0030.05018.81
5.4.280.0030.08018.90
5.4.270.0030.03719.08
5.4.260.0030.03719.03
5.4.250.0000.08318.97
5.4.240.0030.07319.06
5.4.230.0000.07018.93
5.4.220.0100.05719.04
5.4.210.0000.08319.11
5.4.200.0030.07319.05
5.4.190.0070.07019.11
5.4.180.0000.07719.04
5.4.170.0070.06719.02
5.4.160.0000.07318.76
5.4.150.0070.07719.02
5.4.140.0070.05316.27
5.4.130.0030.07316.36
5.4.120.0070.07016.28
5.4.110.0100.07316.45
5.4.100.0000.06716.33
5.4.90.0000.04316.21
5.4.80.0000.06316.25
5.4.70.0030.07316.21
5.4.60.0070.05316.35
5.4.50.0030.07316.30
5.4.40.0000.07016.26
5.4.30.0030.05716.31
5.4.20.0000.07016.18
5.4.10.0030.07316.23
5.4.00.0030.05015.73
5.3.290.0030.06314.60
5.3.280.0030.07314.54
5.3.270.0000.08014.53
5.3.260.0030.05714.55
5.3.250.0070.04014.51
5.3.240.0030.07714.54
5.3.230.0030.08014.57
5.3.220.0070.05714.52
5.3.210.0000.08014.56
5.3.200.0070.07314.55
5.3.190.0000.06314.42
5.3.180.0130.06714.38
5.3.170.0100.07314.41
5.3.160.0070.06314.51
5.3.150.0070.07314.38
5.3.140.0070.07714.50
5.3.130.0000.07714.54
5.3.120.0070.08014.54
5.3.110.0030.07714.52
5.3.100.0000.08013.90
5.3.90.0030.03714.01
5.3.80.0000.04014.01
5.3.70.0000.04714.00
5.3.60.0030.03313.86
5.3.50.0030.06713.88
5.3.40.0000.07713.89
5.3.30.0030.05013.91
5.3.20.0030.07313.70
5.3.10.0070.05013.61
5.3.00.0000.03713.61
5.2.170.0070.05712.17
5.2.160.0000.04012.17
5.2.150.0070.04312.17
5.2.140.0100.05012.17
5.2.130.0000.06312.19
5.2.120.0030.05312.19
5.2.110.0000.03712.19
5.2.100.0030.06312.19
5.2.90.0030.06012.19
5.2.80.0100.05712.19
5.2.70.0070.06012.19
5.2.60.0030.05312.19
5.2.50.0000.06312.19
5.2.40.0070.05312.19
5.2.30.0070.06012.19
5.2.20.0030.06012.19
5.2.10.0000.06012.19
5.2.00.0000.06712.19
5.1.60.0030.04712.19
5.1.50.0000.04012.19
5.1.40.0000.03712.19
5.1.30.0030.02312.19
5.1.20.0030.02712.19
5.1.10.0030.02712.19
5.1.00.0000.02712.19
5.0.50.0030.03012.19
5.0.40.0000.02012.19
5.0.30.0000.04312.19
5.0.20.0000.02012.19
5.0.10.0030.03312.19
5.0.00.0000.03012.19
4.4.90.0100.01712.19
4.4.80.0070.03012.19
4.4.70.0000.03712.19
4.4.60.0000.03712.19
4.4.50.0000.03312.19
4.4.40.0030.04312.19
4.4.30.0000.02712.19
4.4.20.0000.01712.19
4.4.10.0000.02012.19
4.4.00.0000.05312.19
4.3.110.0030.02312.19
4.3.100.0000.01712.19
4.3.90.0000.01312.19
4.3.80.0000.02312.19
4.3.70.0000.01312.19
4.3.60.0000.01712.19
4.3.50.0000.01712.19
4.3.40.0030.04012.19
4.3.30.0000.01712.19
4.3.20.0070.01012.19
4.3.10.0070.01712.19
4.3.00.0000.01312.19

preferences:
71.47 ms | 400 KiB | 5 Q