3v4l.org

run code in 300+ PHP versions simultaneously
<?php function __autoload($class) { echo "Old autoload called for class $class\n"; } function new_autoload($class) { echo "New autoload called for class $class\n"; } // @new Test1(); if (function_exists('__autoload')) { echo "Old autoloader exists\n"; spl_autoload_register('__autoload'); spl_autoload_register('__autoload'); } else { echo "Old autoloader does not exist\n"; } spl_autoload_register('new_autoload'); @new Test2();

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.0080.00818.85
8.3.30.0070.00719.00
8.3.20.0070.00020.16
8.3.10.0000.00721.77
8.3.00.0000.00722.39
8.2.170.0060.01222.96
8.2.160.0030.01020.35
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0100.00726.16
8.2.120.0040.00422.31
8.2.110.0030.00622.15
8.2.100.0070.00717.91
8.2.90.0000.00919.11
8.2.80.0060.00317.97
8.2.70.0060.00317.38
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0050.00318.16
8.2.30.0070.00017.80
8.2.20.0040.00417.48
8.2.10.0040.00419.22
8.2.00.0050.00217.52
8.1.270.0050.00323.84
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00023.60
8.1.230.0040.00719.04
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.22
8.1.190.0000.00717.05
8.1.180.0050.00318.10
8.1.170.0060.00318.50
8.1.160.0050.00221.95
8.1.150.0000.00718.44
8.1.140.0080.00017.35
8.1.130.0050.00217.63
8.1.120.0000.00717.26
8.1.110.0020.00517.21
8.1.100.0030.00417.23
8.1.90.0000.00817.36
8.1.80.0030.00317.34
8.1.70.0030.00317.20
8.1.60.0050.00317.36
8.1.50.0000.00817.39
8.1.40.0000.00717.36
8.1.30.0040.00417.48
8.1.20.0000.00717.41
8.1.10.0040.00417.34
8.1.00.0040.00417.32
8.0.300.0070.00018.77
8.0.290.0030.00316.93
8.0.280.0030.00318.32
8.0.270.0050.00217.12
8.0.260.0030.00316.67
8.0.250.0040.00416.95
8.0.240.0050.00316.91
8.0.230.0000.00716.77
8.0.220.0050.00316.73
8.0.210.0060.00016.71
8.0.200.0040.00416.80
8.0.190.0000.00716.86
8.0.180.0000.00816.78
8.0.170.0040.00416.85
8.0.160.0040.00416.90
8.0.150.0000.00716.77
8.0.140.0080.00016.71
8.0.130.0000.00513.21
8.0.120.0000.00816.82
8.0.110.0030.00516.79
8.0.100.0040.00416.80
8.0.90.0040.00416.62
8.0.80.0130.00316.78
8.0.70.0000.00816.69
8.0.60.0000.00716.78
8.0.50.0040.00416.88
8.0.30.0120.00816.91
8.0.20.0110.01017.40
8.0.10.0040.00416.95
8.0.00.0130.00716.74
7.4.330.0000.00515.02
7.4.320.0000.00716.47
7.4.300.0030.00316.52
7.4.290.0030.00316.54
7.4.280.0000.00816.54
7.4.270.0000.00616.59
7.4.260.0030.00416.53
7.4.250.0000.00716.39
7.4.240.0020.00516.41
7.4.230.0070.00016.33
7.4.220.0130.01316.62
7.4.210.0080.00816.55
7.4.200.0070.00016.63
7.4.190.0040.00416.62
7.4.160.0080.01116.68
7.4.150.0060.01317.40
7.4.140.0060.01217.86
7.4.130.0080.01116.58
7.4.120.0080.01116.53
7.4.110.0030.01416.38
7.4.100.0070.01016.34
7.4.90.0120.00616.42
7.4.80.0060.01219.39
7.4.70.0110.00616.30
7.4.60.0100.00716.29
7.4.50.0000.00716.23
7.4.40.0090.00622.77
7.4.30.0100.00716.46
7.4.00.0070.01014.88
7.3.330.0050.00013.21
7.3.320.0000.00513.39
7.3.310.0040.00416.46
7.3.300.0030.00316.33
7.3.290.0070.00716.35
7.3.280.0080.01016.33
7.3.270.0070.01117.40
7.3.260.0060.01316.54
7.3.250.0110.00816.40
7.3.240.0100.00716.37
7.3.230.0080.00816.39
7.3.210.0100.00716.43
7.3.200.0100.01019.39
7.3.190.0070.01416.43
7.3.180.0060.01016.39
7.3.170.0090.01216.45
7.3.160.0120.00916.55
7.3.120.0070.00914.85
7.3.110.0070.00714.75
7.3.100.0060.00914.91
7.3.90.0060.00914.73
7.3.80.0070.00914.83
7.3.70.0070.00514.77
7.3.60.0030.00814.94
7.3.50.0060.00814.94
7.3.40.0070.00714.66
7.3.30.0060.00614.87
7.3.20.0060.00816.70
7.3.10.0090.00316.57
7.3.00.0070.00416.59
7.2.330.0130.01016.46
7.2.320.0160.00016.28
7.2.310.0060.01016.33
7.2.300.0080.00916.37
7.2.290.0070.01016.69
7.2.250.0110.00715.04
7.2.240.0050.01315.13
7.2.230.0070.01114.90
7.2.220.0050.00714.84
7.2.210.0050.01115.03
7.2.200.0070.00715.02
7.2.190.0090.00314.92
7.2.180.0090.00614.81
7.2.170.0050.00714.92
7.2.130.0130.00316.85
7.2.120.0030.01016.64
7.2.110.0110.00316.85
7.2.100.0090.00616.69
7.2.90.0040.01116.44
7.2.80.0100.00617.03
7.2.70.0090.00316.91
7.2.60.0070.00416.88
7.2.50.0030.01016.89
7.2.40.0060.00916.77
7.2.30.0070.01116.78
7.2.20.0030.01316.88
7.2.10.0040.01116.69
7.2.00.0040.01116.56
7.1.330.0060.00615.79
7.1.320.0060.00815.86
7.1.310.0030.01115.75
7.1.300.0050.00615.83
7.1.290.0040.00815.82
7.1.280.0050.00515.65
7.1.270.0020.01215.73
7.1.260.0080.00615.72
7.1.250.0030.01015.70
7.1.240.0070.00415.58
7.1.230.0110.00315.83
7.1.220.0040.01115.86
7.1.210.0060.00615.54
7.1.200.0070.00515.90
7.1.190.0040.00815.78
7.1.180.0120.00415.87
7.1.170.0030.00815.88
7.1.160.0100.00615.92
7.1.150.0090.00615.76
7.1.140.0000.01515.66
7.1.130.0070.00615.43
7.1.120.0110.00415.77
7.1.110.0030.01015.79
7.1.100.0000.01015.75
7.1.90.0030.00915.59
7.1.80.0030.00916.01
7.1.70.0020.00916.59
7.1.60.0060.01217.43
7.1.50.0090.01025.26
7.1.40.0100.00315.73
7.1.30.0030.01115.57
7.1.20.0000.01115.53
7.1.10.0040.00415.81
7.1.00.0020.04618.98
7.0.330.0030.00715.41
7.0.320.0070.00715.41
7.0.310.0000.01215.38
7.0.300.0060.00315.50
7.0.290.0000.01515.36
7.0.280.0040.01115.03
7.0.270.0000.00815.14
7.0.260.0070.00715.42
7.0.250.0000.01115.35
7.0.240.0060.00915.48
7.0.230.0030.00715.42
7.0.220.0000.00815.49
7.0.210.0070.00715.37
7.0.200.0060.00516.10
7.0.190.0090.00614.97
7.0.180.0030.00615.38
7.0.170.0030.01315.16
7.0.160.0000.01315.23
7.0.150.0060.00915.19
7.0.140.0120.03318.66
7.0.130.0060.00915.23
7.0.120.0060.01015.19
7.0.110.0040.00715.35
7.0.100.0030.01015.34
7.0.90.0060.00315.28
7.0.80.0060.00715.47
7.0.70.0070.00715.73
7.0.60.0060.03817.47
7.0.50.0080.04116.65
7.0.40.0050.04016.85
7.0.30.0200.02316.91
7.0.20.0150.02616.80
7.0.10.0060.02516.92
7.0.00.0020.02816.70
5.6.380.0100.00614.31
5.6.370.0120.00314.13
5.6.360.0030.01114.48
5.6.350.0000.00914.11
5.6.340.0060.00314.08
5.6.330.0000.01114.22
5.6.320.0070.00714.34
5.6.310.0070.00714.13
5.6.300.0060.00313.98
5.6.290.0070.00714.39
5.6.280.0090.03717.52
5.6.270.0030.01014.39
5.6.260.0090.00913.90
5.6.250.0100.00314.42
5.6.240.0110.00414.12
5.6.230.0070.00714.13
5.6.220.0030.01014.13
5.6.210.0030.04817.47
5.6.200.0080.03116.30
5.6.190.0020.03417.34
5.6.180.0050.02617.23
5.6.170.0170.04117.46
5.6.160.0100.04517.37
5.6.150.0080.02316.28
5.6.140.0030.04916.19
5.6.130.0060.04416.23
5.6.120.0030.04517.53
5.6.110.0050.04517.70
5.6.100.0070.04717.51
5.6.90.0080.02317.70
5.6.80.0070.02117.07
5.6.70.0000.01514.24
5.6.60.0090.00613.90
5.6.50.0030.01014.13
5.6.40.0070.00714.38
5.6.30.0070.01014.29
5.6.20.0030.01013.95
5.6.10.0100.00314.28
5.6.00.0080.00514.25
5.5.380.0030.00911.64
5.5.370.0000.01111.64
5.5.360.0000.00611.64
5.5.350.0040.03016.04
5.5.340.0070.04214.86
5.5.330.0050.04115.88
5.5.320.0140.02215.99
5.5.310.0130.02316.00
5.5.300.0110.03314.85
5.5.290.0030.04814.78
5.5.280.0050.04516.20
5.5.270.0080.04716.20
5.5.260.0100.04016.25
5.5.250.0060.03316.18
5.5.240.0130.04015.88
5.5.230.0030.00711.64
5.5.220.0090.00311.64
5.5.210.0030.00611.64
5.5.200.0040.00711.64
5.5.190.0030.00311.64
5.5.180.0040.00411.64
5.5.170.0030.00911.64
5.5.160.0060.00311.64
5.5.150.0050.00211.64
5.5.140.0040.00711.64
5.5.130.0090.00311.64
5.5.120.0030.00311.64
5.5.110.0040.00811.64
5.5.100.0030.00611.64
5.5.90.0000.00911.64
5.5.80.0000.01211.64
5.5.70.0030.01011.64
5.5.60.0040.00411.64
5.5.50.0030.00511.64
5.5.40.0070.00311.64
5.5.30.0080.00311.64
5.5.20.0000.00711.64
5.5.10.0000.00811.64
5.5.00.0040.00811.64
5.4.450.0470.02715.40
5.4.440.0500.04115.56
5.4.430.0060.03115.54
5.4.420.0350.00215.56
5.4.410.0120.02715.32
5.4.400.0120.03015.19
5.4.390.0110.03115.17
5.4.380.0130.02615.20
5.4.370.0030.02515.21
5.4.360.0100.02615.07
5.4.350.0060.02311.83
5.4.340.0070.02111.83
5.4.330.0060.00011.64
5.4.320.0070.02312.07
5.4.310.0030.02412.07
5.4.300.0050.02212.07
5.4.290.0020.02512.07
5.4.280.0080.01812.02
5.4.270.0040.02712.02
5.4.260.0020.02212.02
5.4.250.0050.01912.02
5.4.240.0020.02712.02
5.4.230.0060.02512.01
5.4.220.0040.02212.01
5.4.210.0050.02012.01
5.4.200.0070.02712.00
5.4.190.0100.02512.00
5.4.180.0070.02712.00
5.4.170.0090.02712.01
5.4.160.0120.02312.00
5.4.150.0100.02612.00
5.4.140.0070.02711.85
5.4.130.0080.02811.84
5.4.120.0110.02411.82
5.4.110.0070.02611.81
5.4.100.0120.02511.82
5.4.90.0110.02211.82
5.4.80.0110.02611.82
5.4.70.0110.02511.81
5.4.60.0120.02611.81
5.4.50.0130.02311.81
5.4.40.0100.02511.81
5.4.30.0100.02711.80
5.4.20.0080.02811.80
5.4.10.0110.02411.80
5.4.00.0090.02411.55
5.3.290.0070.02612.22
5.3.280.0060.02412.17
5.3.270.0110.02512.18
5.3.260.0100.02712.18
5.3.250.0110.02412.18
5.3.240.0080.02812.18
5.3.230.0150.02212.17
5.3.220.0110.02512.16
5.3.210.0090.02812.16
5.3.200.0070.02912.16
5.3.190.0110.02512.16
5.3.180.0090.02812.16
5.3.170.0120.02612.15
5.3.160.0110.02312.15
5.3.150.0100.02512.15
5.3.140.0120.02412.15
5.3.130.0090.02812.15
5.3.120.0130.02612.15
5.3.110.0080.02612.15
5.3.100.0090.02711.88
5.3.90.0110.02211.86
5.3.80.0120.02111.86
5.3.70.0100.02511.86
5.3.60.0090.02611.85
5.3.50.0070.03011.82
5.3.40.0080.02811.82
5.3.30.0070.02711.80
5.3.20.0100.02311.69
5.3.10.0070.02811.68
5.3.00.0100.02511.66
5.2.170.0100.01910.42
5.2.160.0050.02110.42
5.2.150.0070.02110.42
5.2.140.0060.02210.42
5.2.130.0090.01810.40
5.2.120.0080.02010.40
5.2.110.0070.02010.40
5.2.100.0090.01810.40
5.2.90.0080.01910.40
5.2.80.0120.01710.40
5.2.70.0080.01910.40
5.2.60.0110.01810.38
5.2.50.0050.02410.36
5.2.40.0080.02310.35
5.2.30.0080.01910.34
5.2.20.0090.01910.34
5.2.10.0080.02110.29
5.2.00.0080.01910.21
5.1.60.0050.0189.85
5.1.50.0070.0189.85
5.1.40.0070.0189.85
5.1.30.0050.02110.02
5.1.20.0070.01710.03
5.1.10.0040.0229.89
5.1.00.0040.0199.89
5.0.50.0100.0099.13
5.0.40.0100.0129.06
5.0.30.0060.0198.96
5.0.20.0050.0158.95
5.0.10.0060.0138.94
5.0.00.0080.0178.94
4.4.90.0040.0128.21
4.4.80.0040.0128.20
4.4.70.0040.0138.20
4.4.60.0040.0138.19
4.4.50.0070.0098.20
4.4.40.0060.0148.17
4.4.30.0040.0108.20
4.4.20.0070.0098.24
4.4.10.0040.0128.24
4.4.00.0070.0158.20
4.3.110.0070.0118.15
4.3.100.0050.0128.15
4.3.90.0040.0128.13
4.3.80.0050.0178.11
4.3.70.0060.0108.13
4.3.60.0030.0148.13
4.3.50.0060.0108.13
4.3.40.0050.0178.09
4.3.30.0050.0117.47
4.3.20.0050.0097.46
4.3.10.0020.0137.44
4.3.00.0050.0178.05

preferences:
43.81 ms | 400 KiB | 5 Q