3v4l.org

run code in 300+ PHP versions simultaneously
<?php use B\D, C\E as F; namespace A ; use B\D, C\E as F; // function calls function foo() { echo __NAMESPACE__;} namespace C; use B\D, C\E as F; declare(ticks=1); function tick_handler() { echo "tick_handler() called\n"; } class E { function foo() { echo __CLASS__;}} //* namespace{ use B\D, C\E as F; // function calls*tick_handler()/ new E(); tick_handler(); \C\E::foo(); // then calls global function "foo" new D(); // using import rules, creates object of class "D" defined in namespace "B" // if not found, it tries to autoload class "B\D" new F(); // using import rules, creates object of class "E" defined in namespace "C" // if not found, it tries to autoload class "C\E" new \B(); // creates object of class "B" defined in global scope // if not found, it tries to autoload class "B" new \D(); // creates object of class "D" defined in global scope // if not found, it tries to autoload class "D" new \F(); // creates object of class "F" defined in global scope // if no ?>

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.0070.00718.30
8.3.50.0110.00821.99
8.3.40.0110.01118.67
8.3.30.0110.00718.83
8.3.20.0040.00420.09
8.3.10.0070.00721.94
8.3.00.0000.00822.46
8.2.180.0040.01116.63
8.2.170.0110.00722.96
8.2.160.0130.00020.44
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0150.00426.16
8.2.120.0040.00419.23
8.2.110.0060.00320.29
8.2.100.0070.00417.78
8.2.90.0050.00319.09
8.2.80.0000.00817.97
8.2.70.0090.00017.13
8.2.60.0030.00617.68
8.2.50.0030.00718.07
8.2.40.0030.00618.16
8.2.30.0030.00617.80
8.2.20.0040.00417.43
8.2.10.0030.00517.43
8.2.00.0000.00817.58
8.1.280.0090.00625.92
8.1.270.0030.00622.19
8.1.260.0060.00326.35
8.1.250.0020.00528.09
8.1.240.0070.00323.65
8.1.230.0080.00320.86
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.22
8.1.190.0060.00317.30
8.1.180.0080.00018.10
8.1.170.0000.00818.59
8.1.160.0040.00421.93
8.1.150.0030.00618.56
8.1.140.0000.00717.22
8.1.130.0070.00017.76
8.1.120.0050.00317.29
8.1.110.0040.00417.22
8.1.100.0030.00517.38
8.1.90.0000.00717.23
8.1.80.0000.00717.22
8.1.70.0000.00717.30
8.1.60.0030.00517.30
8.1.50.0030.00517.41
8.1.40.0050.00317.32
8.1.30.0030.00617.42
8.1.20.0050.00217.48
8.1.10.0060.00317.44
8.1.00.0000.00717.17
8.0.300.0070.00018.77
8.0.290.0070.00017.04
8.0.280.0080.00018.18
8.0.270.0040.00417.12
8.0.260.0030.00316.74
8.0.250.0030.00316.86
8.0.240.0080.00016.84
8.0.230.0000.00716.83
8.0.220.0000.00716.78
8.0.210.0000.00716.80
8.0.200.0000.00616.82
8.0.190.0000.00716.77
8.0.180.0080.00016.80
8.0.170.0000.00716.86
8.0.160.0040.00416.79
8.0.150.0030.00316.64
8.0.140.0000.00816.79
8.0.130.0030.00313.20
8.0.120.0030.00516.74
8.0.110.0070.00016.83
8.0.100.0000.00816.76
8.0.90.0080.00016.70
8.0.80.0060.00916.77
8.0.70.0070.00016.75
8.0.60.0030.00316.61
8.0.50.0000.00716.88
8.0.30.0120.00716.92
8.0.20.0120.01017.40
8.0.10.0030.00616.94
8.0.00.0110.00816.62
7.4.330.0040.00315.00
7.4.320.0000.00616.49
7.4.300.0030.00316.55
7.4.290.0030.00516.50
7.4.280.0030.00316.57
7.4.270.0030.00316.56
7.4.260.0030.00316.37
7.4.250.0040.00416.46
7.4.240.0000.00716.56
7.4.230.0030.00316.57
7.4.220.0120.00616.48
7.4.210.0060.00916.49
7.4.200.0040.00416.59
7.4.190.0070.00016.52
7.4.160.0100.00616.49
7.4.150.0070.01117.40
7.4.140.0130.00517.86
7.4.130.0020.01616.39
7.4.120.0070.01016.38
7.4.110.0090.00916.47
7.4.100.0110.01116.42
7.4.90.0130.00416.44
7.4.80.0160.00819.39
7.4.70.0100.00616.57
7.4.60.0130.01016.38
7.4.50.0030.00316.34
7.4.40.0160.00022.77
7.4.30.0120.00616.66
7.4.00.0030.01214.93
7.3.330.0000.00513.38
7.3.320.0000.00513.19
7.3.310.0030.00316.36
7.3.300.0030.00316.44
7.3.290.0070.00716.27
7.3.280.0080.01016.36
7.3.270.0090.00817.40
7.3.260.0070.01016.47
7.3.250.0150.00716.43
7.3.240.0070.01016.54
7.3.230.0130.00716.43
7.3.210.0110.00616.37
7.3.200.0060.00919.39
7.3.190.0180.00616.45
7.3.180.0090.00616.38
7.3.170.0030.01216.51
7.3.160.0100.00716.34
7.3.120.0050.01114.71
7.3.110.0030.01315.05
7.3.100.0000.01714.93
7.3.90.0000.00914.54
7.3.80.0030.01014.76
7.3.70.0030.00614.65
7.3.60.0040.01114.89
7.3.50.0090.00614.84
7.3.40.0040.00814.75
7.3.30.0080.00614.73
7.3.20.0030.01116.61
7.3.10.0040.01216.56
7.3.00.0030.00916.20
7.2.330.0040.01316.34
7.2.320.0080.01116.57
7.2.310.0150.00316.53
7.2.300.0070.01016.56
7.2.290.0060.01016.36
7.2.250.0070.01014.86
7.2.240.0070.00715.07
7.2.230.0090.00614.79
7.2.220.0030.00614.95
7.2.210.0070.00714.58
7.2.200.0070.01014.87
7.2.190.0060.00914.64
7.2.180.0120.00314.61
7.2.170.0060.00915.04
7.2.60.0030.01216.88
7.2.00.0070.00718.91
7.1.330.0090.00315.67
7.1.320.0060.00615.62
7.1.310.0090.00015.43
7.1.300.0040.00715.42
7.1.290.0040.01115.70
7.1.280.0070.00715.61
7.1.270.0040.01115.52
7.1.260.0040.01115.52
7.1.200.0000.01415.60
7.1.100.0060.00918.04
7.1.70.0000.00816.80
7.1.60.0070.01819.82
7.1.50.0090.00616.86
7.1.00.0070.07322.31
7.0.200.0190.00016.48
7.0.140.0030.07022.10
7.0.100.0000.04719.90
7.0.90.0030.04019.91
7.0.80.0100.07019.87
7.0.70.0100.07719.86
7.0.60.0070.07019.73
7.0.50.0000.06720.34
7.0.40.0070.08020.12
7.0.30.0170.06720.03
7.0.20.0100.07020.17
7.0.10.0030.08320.03
7.0.00.0100.08320.17
5.6.280.0000.07321.03
5.6.250.0100.03720.52
5.6.240.0100.04320.59
5.6.230.0100.06720.64
5.6.220.0100.06720.53
5.6.210.0130.06320.61
5.6.200.0070.08321.15
5.6.190.0070.07021.02
5.6.180.0100.08020.95
5.6.170.0070.08721.17
5.6.160.0130.06021.02
5.6.150.0070.08321.05
5.6.140.0130.07021.07
5.6.130.0130.08320.99
5.6.120.0130.06721.11
5.6.110.0100.08721.04
5.6.100.0200.06721.07
5.6.90.0070.08021.05
5.6.80.0070.07720.41
5.6.70.0130.05720.43
5.6.60.0100.08320.45
5.6.50.0100.07720.52
5.6.40.0100.07720.32
5.6.30.0100.08320.41
5.6.20.0130.07320.38
5.6.10.0130.07020.39
5.6.00.0030.08320.29
5.5.380.0030.03720.52
5.5.370.0100.06320.38
5.5.360.0100.07720.32
5.5.350.0000.07720.29
5.5.340.0130.08020.87
5.5.330.0070.08020.88
5.5.320.0030.08720.94
5.5.310.0130.08020.92
5.5.300.0270.05020.64
5.5.290.0170.08320.88
5.5.280.0070.08720.87
5.5.270.0130.07320.79
5.5.260.0030.08720.92
5.5.250.0200.07320.46
5.5.240.0070.06320.16
5.5.230.0030.08020.14
5.5.220.0070.03720.17
5.5.210.0070.05020.27
5.5.200.0100.07720.21
5.5.190.0030.07720.23
5.5.180.0070.07720.27
5.5.160.0100.07720.21
5.5.150.0200.06020.27
5.5.140.0030.07720.21
5.5.130.0200.05720.18
5.5.120.0170.06720.18
5.5.110.0030.05020.24
5.5.100.0100.07720.07
5.5.90.0100.08020.19
5.5.80.0070.08320.04
5.5.70.0070.04020.00
5.5.60.0130.07320.04
5.5.50.0130.06720.16
5.5.40.0100.06719.89
5.5.30.0100.07320.04
5.5.20.0100.07320.06
5.5.10.0030.05320.06
5.5.00.0200.06320.07
5.4.450.0130.07719.35
5.4.440.0130.07319.21
5.4.430.0100.07319.35
5.4.420.0070.08019.45
5.4.410.0000.08319.13
5.4.400.0100.07719.04
5.4.390.0100.07319.19
5.4.380.0070.07319.13
5.4.370.0100.07719.11
5.4.360.0070.08019.23
5.4.350.0100.07019.16
5.4.340.0170.06719.11
5.4.320.0130.06718.84
5.4.310.0030.08019.07
5.4.300.0070.07018.92
5.4.290.0030.08019.10
5.4.280.0070.07718.88
5.4.270.0070.05018.82
5.4.260.0030.07719.11
5.4.250.0030.07718.82
5.4.240.0070.07319.18
5.4.230.0100.07019.13
5.4.220.0070.07018.85
5.4.210.0100.08018.82
5.4.200.0170.07019.21
5.4.190.0130.06319.11
5.4.180.0030.08019.11
5.4.170.0070.07719.13
5.4.160.0070.08018.90
5.4.150.0100.06719.20
5.4.140.0170.06316.48
5.4.130.0000.04716.41
5.4.120.0030.07716.31
5.4.110.0130.06016.54
5.4.100.0070.06316.47
5.4.90.0030.06316.50
5.4.80.0130.06716.38
5.4.70.0000.04716.30
5.4.60.0100.03016.39
5.4.50.0100.06716.44
5.4.40.0130.06716.35
5.4.30.0070.07016.31
5.4.20.0030.04316.32
5.4.10.0100.07316.38
5.4.00.0130.03315.72
5.3.290.0100.07314.58
5.3.280.0070.04314.63
5.3.270.0130.05014.54
5.3.260.0030.06314.72
5.3.250.0100.06714.72
5.3.240.0100.05714.68
5.3.230.0100.06714.70
5.3.220.0030.07014.54
5.3.210.0230.05714.54
5.3.200.0030.08014.58
5.3.190.0030.06314.67
5.3.180.0070.06714.49
5.3.170.0070.07314.48
5.3.160.0030.05014.47
5.3.150.0070.05714.61
5.3.140.0000.05714.66
5.3.130.0030.08314.55
5.3.120.0070.08314.52
5.3.110.0100.07014.52
5.3.100.0170.07014.01
5.3.90.0100.07314.11
5.3.80.0100.07313.90
5.3.70.0200.06314.05
5.3.60.0100.07014.13
5.3.50.0100.07013.92
5.3.40.0070.07713.86
5.3.30.0000.05713.90
5.3.20.0030.07013.57
5.3.10.0100.07013.63
5.3.00.0200.06713.73
5.2.170.0100.05311.14
5.2.160.0130.05011.16
5.2.150.0100.04711.10
5.2.140.0070.04311.07
5.2.130.0000.05311.13
5.2.120.0000.04311.13
5.2.110.0070.06310.94
5.2.100.0100.05711.14
5.2.90.0030.03310.94
5.2.80.0100.04710.87
5.2.70.0100.03011.14
5.2.60.0070.06011.05
5.2.50.0070.02710.83
5.2.40.0070.05310.83
5.2.30.0030.04711.01
5.2.20.0030.06310.77
5.2.10.0070.05010.74
5.2.00.0030.04010.56
5.1.60.0000.05710.44
5.1.50.0000.05710.44
5.1.40.0000.04710.44
5.1.30.0000.04310.44
5.1.20.0070.06010.44
5.1.10.0070.05010.44
5.1.00.0000.06310.44
5.0.50.0070.02710.44
5.0.40.0030.04310.44
5.0.30.0030.07310.44
5.0.20.0030.04310.44
5.0.10.0030.04010.44
5.0.00.0030.06010.44
4.4.90.0000.03710.44
4.4.80.0000.01710.44
4.4.70.0030.03310.44
4.4.60.0030.02010.44
4.4.50.0070.03310.44
4.4.40.0070.04710.44
4.4.30.0070.03310.44
4.4.20.0130.02710.44
4.4.10.0000.03710.44
4.4.00.0070.03710.44
4.3.110.0000.03010.44
4.3.100.0030.03310.44
4.3.90.0030.03310.44
4.3.80.0030.05310.44
4.3.70.0070.03310.44
4.3.60.0000.02710.44
4.3.50.0000.02010.44
4.3.40.0100.03710.44
4.3.30.0000.02710.44
4.3.20.0000.03710.44
4.3.10.0000.02710.44
4.3.00.0030.03310.44

preferences:
40.49 ms | 401 KiB | 5 Q