3v4l.org

run code in 300+ PHP versions simultaneously
<?php first::init(); second::init(); print_r(spl_autoload_functions()); new Foo; class first { public static function init() { spl_autoload_register(array('self','load')); } public static function load($class) { echo "first is loading class $class\n"; } } class second { public static function init() { spl_autoload_register(array('self','load')); } public static function load($class){ echo "first is loading class $class\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.60.0110.00416.88
8.3.50.0100.00722.90
8.3.40.0080.00618.99
8.3.30.0040.01118.52
8.3.20.0000.00720.34
8.3.10.0030.00621.78
8.3.00.0060.00319.56
8.2.180.0120.00316.63
8.2.170.0140.00022.96
8.2.160.0080.00819.26
8.2.150.0080.00025.66
8.2.140.0000.00724.66
8.2.130.0110.00320.39
8.2.120.0000.00826.35
8.2.110.0040.00420.98
8.2.100.0080.00417.84
8.2.90.0060.00318.03
8.2.80.0000.00819.28
8.2.70.0000.00917.63
8.2.60.0030.00517.50
8.2.50.0040.00417.63
8.2.40.0060.00319.47
8.2.30.0000.00717.67
8.2.20.0000.00817.65
8.2.10.0070.00017.93
8.2.00.0040.00418.08
8.1.280.0140.00725.92
8.1.270.0090.00023.84
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0060.00322.55
8.1.230.0110.00021.03
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0000.00817.22
8.1.190.0040.00417.23
8.1.180.0000.01018.10
8.1.170.0000.00717.62
8.1.160.0040.00418.84
8.1.150.0000.00718.75
8.1.140.0050.00319.49
8.1.130.0030.00317.62
8.1.120.0000.00717.31
8.1.110.0040.00417.34
8.1.100.0000.00717.30
8.1.90.0050.00317.21
8.1.80.0050.00217.29
8.1.70.0000.00717.18
8.1.60.0070.00017.54
8.1.50.0000.00817.43
8.1.40.0080.00017.33
8.1.30.0040.00917.53
8.1.20.0050.00217.48
8.1.10.0030.00517.51
8.1.00.0040.00417.38
8.0.300.0030.00519.98
8.0.290.0050.00316.88
8.0.280.0060.00317.98
8.0.270.0000.00719.87
8.0.260.0040.00418.35
8.0.250.0000.00616.91
8.0.240.0000.00716.98
8.0.230.0070.00017.07
8.0.220.0000.00816.96
8.0.210.0060.00316.90
8.0.200.0030.00316.97
8.0.190.0000.00716.96
8.0.180.0030.00516.95
8.0.170.0040.00416.98
8.0.160.0070.00016.82
8.0.150.0070.00016.91
8.0.140.0000.00716.91
8.0.130.0000.00813.36
8.0.120.0000.00816.84
8.0.110.0040.00416.92
8.0.100.0030.00616.81
8.0.90.0050.00316.78
8.0.80.0130.00816.99
8.0.70.0040.00416.81
8.0.60.0050.00317.06
8.0.50.0070.00016.98
8.0.30.0050.01317.07
8.0.20.0120.01017.40
8.0.10.0050.00316.74
8.0.00.0000.01716.78
7.4.330.0020.00215.08
7.4.320.0060.00016.40
7.4.300.0040.00416.42
7.4.290.0000.00716.33
7.4.280.0050.00216.31
7.4.270.0000.00716.52
7.4.260.0030.00316.52
7.4.250.0050.00216.37
7.4.240.0080.00016.57
7.4.230.0070.00016.42
7.4.220.0090.00916.47
7.4.210.0100.00616.43
7.4.200.0040.00416.34
7.4.150.0140.00317.40
7.4.140.0100.01117.86
7.4.130.0110.00616.54
7.4.120.0110.00516.57
7.4.110.0150.00316.39
7.4.100.0200.00716.48
7.4.90.0110.00616.42
7.4.80.0140.00919.39
7.4.70.0070.01016.68
7.4.60.0030.01316.61
7.4.50.0060.00916.55
7.4.40.0120.00416.34
7.4.30.0080.00816.45
7.4.00.0090.00714.97
7.3.330.0050.00013.43
7.3.320.0000.00513.32
7.3.310.0040.00416.32
7.3.300.0030.00316.46
7.3.290.0030.00316.38
7.3.280.0080.00916.44
7.3.270.0110.00817.40
7.3.260.0080.01116.49
7.3.250.0080.01316.44
7.3.240.0150.00316.48
7.3.230.0060.01216.50
7.3.210.0090.00616.38
7.3.200.0160.00816.66
7.3.190.0130.00316.33
7.3.180.0100.00816.48
7.3.170.0080.00816.32
7.3.160.0000.01816.42
7.3.120.0070.01014.90
7.3.110.0110.00714.88
7.3.100.0050.01114.92
7.3.90.0090.00314.84
7.3.80.0060.00614.77
7.3.70.0080.00514.85
7.3.60.0040.00914.85
7.3.50.0040.01014.91
7.3.40.0080.00414.90
7.3.30.0050.00714.82
7.3.20.0060.00916.61
7.3.10.0020.01016.54
7.3.00.0080.00516.61
7.2.330.0030.01616.55
7.2.320.0070.01016.54
7.2.310.0090.00916.58
7.2.300.0140.00616.21
7.2.290.0090.01216.59
7.2.250.0050.01314.96
7.2.240.0080.01014.96
7.2.230.0120.00314.65
7.2.220.0030.01215.08
7.2.210.0100.00214.77
7.2.200.0060.01114.77
7.2.190.0070.00515.04
7.2.180.0060.00914.86
7.2.170.0070.00314.88
7.2.60.0040.00716.81
7.1.330.0000.01415.71
7.1.320.0080.00315.48
7.1.310.0080.00815.67
7.1.300.0050.00715.68
7.1.290.0060.00815.62
7.1.280.0030.00715.72
7.1.270.0050.01015.71
7.1.260.0060.00515.74
7.1.200.0040.00715.95
7.1.70.0040.00816.87
7.1.60.0000.01119.87
7.1.50.0060.00616.48
7.1.00.0000.08022.28
7.0.200.0620.00714.58
7.0.70.0470.06019.90
7.0.60.0670.05019.90
7.0.50.0530.06020.27
7.0.40.0570.06320.21
7.0.30.0530.06320.30
7.0.20.0400.04720.36
7.0.10.0500.07020.36
7.0.00.0800.04720.39
5.6.280.0030.07021.03
5.6.220.0330.06320.62
5.6.210.0500.05020.88
5.6.200.0430.06021.10
5.6.190.0470.07021.20
5.6.180.0570.06021.09
5.6.170.0470.06021.20
5.6.160.0670.07021.15
5.6.150.0500.07321.07
5.6.140.0500.05721.08
5.6.130.0500.06021.11
5.6.120.0470.06721.13
5.6.110.0530.06721.15
5.6.100.0500.06321.12
5.6.90.0470.05721.07
5.6.80.0470.05320.48
5.6.70.0200.05320.46
5.6.60.0500.05720.46
5.6.50.0370.05320.47
5.6.40.0400.04720.38
5.6.30.0500.04320.53
5.6.20.0670.07020.52
5.6.10.0630.05720.52
5.6.00.0630.05720.51
5.5.360.0400.06720.48
5.5.350.0800.08020.49
5.5.340.0330.06020.94
5.5.330.0670.07020.93
5.5.320.0470.05720.91
5.5.310.0070.06320.92
5.5.300.0570.06020.95
5.5.290.0470.06320.90
5.5.280.0400.05720.95
5.5.270.0370.06320.92
5.5.260.0570.06320.84
5.5.250.0430.06720.77
5.5.240.0330.06020.32
5.5.230.0330.04320.21
5.5.220.0500.05320.30
5.5.210.0370.05020.33
5.5.200.0230.06020.33
5.5.190.0600.07020.24
5.5.180.0770.07720.21
5.5.160.0730.06020.13
5.5.150.0570.06020.18
5.5.140.0430.05320.21
5.5.130.0630.05020.13
5.5.120.0670.06720.21
5.5.110.0730.06720.30
5.5.100.0700.07020.08
5.5.90.0570.06720.02
5.5.80.0470.07320.01
5.5.70.0500.06020.06
5.5.60.0400.06320.20
5.5.50.0370.06720.06
5.5.40.0400.06020.20
5.5.30.0400.05720.10
5.5.20.0470.06020.21
5.5.10.0400.06320.20
5.5.00.0370.06020.08

preferences:
58.17 ms | 401 KiB | 5 Q