3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f1($class) { echo "f1: [[$class]]\n"; } function f2($class) { echo "f2: [[$class]]\n"; } spl_autoload_register('f1'); spl_autoload_register('f2'); spl_autoload_register(create_function('$class', 'echo "cf1: [[$class]]\n";')); spl_autoload_register(create_function('$class', 'echo "cf2: [[$class]]\n";')); var_dump(spl_autoload_functions()); foreach (spl_autoload_functions() AS $func) { spl_autoload_unregister($func); } var_dump(spl_autoload_functions()); ?>

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.0120.00316.73
8.3.50.0110.00822.80
8.3.40.0210.00018.84
8.3.30.0170.00319.14
8.3.20.0040.00420.38
8.3.10.0090.00923.60
8.3.00.0120.00619.38
8.2.180.0030.01218.29
8.2.170.0160.00322.96
8.2.160.0110.00320.50
8.2.150.0120.00624.18
8.2.140.0040.00424.66
8.2.130.0060.01326.16
8.2.120.0080.00020.93
8.2.110.0100.00020.61
8.2.100.0120.00019.64
8.2.90.0080.00017.84
8.2.80.0040.00420.47
8.2.70.0040.00417.78
8.2.60.0070.00018.04
8.2.50.0040.00718.10
8.2.40.0080.00020.61
8.2.30.0000.00719.50
8.2.20.0000.00717.64
8.2.10.0040.00418.13
8.2.00.0050.00317.58
8.1.280.0140.00725.92
8.1.270.0060.00323.98
8.1.260.0040.00426.35
8.1.250.0140.00028.09
8.1.240.0050.00323.91
8.1.230.0090.00320.97
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0000.00917.23
8.1.190.0000.00819.09
8.1.180.0040.00418.10
8.1.170.0080.00018.34
8.1.160.0000.00722.16
8.1.150.0040.00418.75
8.1.140.0040.00417.45
8.1.130.0000.00617.66
8.1.120.0060.00317.29
8.1.110.0040.00417.25
8.1.100.0000.00717.21
8.1.90.0030.00317.32
8.1.80.0000.00817.36
8.1.70.0000.00717.27
8.1.60.0080.00017.43
8.1.50.0090.00017.48
8.1.40.0000.00717.52
8.1.30.0040.00417.52
8.1.20.0000.00817.58
8.1.10.0040.00417.54
8.1.00.0080.00017.48
8.0.300.0030.00621.85
8.0.290.0040.00416.75
8.0.280.0080.00018.45
8.0.270.0030.00317.21
8.0.260.0060.00317.18
8.0.250.0030.00316.86
8.0.240.0000.00916.96
8.0.230.0070.00016.89
8.0.220.0000.00716.89
8.0.210.0000.00716.91
8.0.200.0030.00316.99
8.0.190.0050.00316.95
8.0.180.0080.00316.81
8.0.170.0070.00016.95
8.0.160.0030.00516.82
8.0.150.0000.00716.79
8.0.140.0030.00416.79
8.0.130.0050.00013.40
8.0.120.0000.00816.75
8.0.110.0040.00416.93
8.0.100.0050.00216.79
8.0.90.0040.00416.80
8.0.80.0090.01816.87
8.0.70.0050.00217.03
8.0.60.0030.00516.98
8.0.50.0050.00316.91
8.0.30.0110.01217.07
8.0.20.0140.00517.40
8.0.10.0050.00316.78
8.0.00.0110.00616.72
7.4.330.0020.00215.13
7.4.320.0000.00716.46
7.4.300.0030.00316.47
7.4.290.0040.00416.47
7.4.280.0030.00316.55
7.4.270.0030.00316.55
7.4.260.0070.00016.52
7.4.250.0000.00716.52
7.4.240.0020.00516.48
7.4.230.0030.00316.53
7.4.220.0090.00916.64
7.4.210.0080.00816.59
7.4.200.0000.00716.67
7.4.160.0150.00916.35
7.4.150.0060.01217.40
7.4.140.0120.00917.86
7.4.130.0070.01616.43
7.4.120.0090.01016.44
7.4.110.0070.01116.40
7.4.100.0060.01316.50
7.4.90.0120.00516.51
7.4.80.0120.01619.39
7.4.70.0090.01216.50
7.4.60.0090.00916.61
7.4.50.0040.00416.62
7.4.40.0080.00816.61
7.4.30.0110.00616.67
7.4.00.0030.01415.06
7.3.330.0050.00013.34
7.3.320.0000.00513.27
7.3.310.0000.00716.33
7.3.300.0000.00716.34
7.3.290.0070.00716.27
7.3.280.0090.01016.36
7.3.270.0080.00917.40
7.3.260.0100.00716.39
7.3.250.0100.00816.38
7.3.240.0080.00816.59
7.3.230.0060.01216.39
7.3.210.0090.00916.20
7.3.200.0090.01419.39
7.3.190.0090.01216.50
7.3.180.0030.01216.32
7.3.170.0060.00916.62
7.3.160.0100.00716.51
7.2.330.0030.01516.55
7.2.320.0100.00716.75
7.2.310.0090.00916.45
7.2.300.0130.01116.63
7.2.290.0060.01016.68
7.2.110.0130.00315.97
7.2.100.0030.01316.25
7.2.90.0060.01316.06
7.2.80.0000.01516.20
7.2.70.0080.00816.34
7.2.60.0080.00816.32
7.2.50.0050.01216.43
7.2.40.0090.00916.63
7.2.30.0060.01016.20
7.2.20.0120.00516.57
7.2.10.0090.00916.16
7.2.00.0040.01117.75
7.1.230.0100.00315.06
7.1.220.0040.01215.34
7.1.210.0080.00415.40
7.1.200.0050.00615.29
7.1.190.0070.00715.25
7.1.180.0130.00015.54
7.1.170.0110.00315.17
7.1.160.0130.00615.18
7.1.150.0090.00315.35
7.1.140.0130.00015.32
7.1.130.0120.00315.46
7.1.120.0090.00915.70
7.1.110.0060.00615.82
7.1.100.0060.00816.65
7.1.90.0040.01115.59
7.1.80.0040.01115.18
7.1.70.0060.00516.21
7.1.60.0100.00917.34
7.1.50.0080.00916.04
7.1.40.0070.01015.21
7.1.30.0110.00315.23
7.1.20.0090.00615.27
7.1.10.0040.01115.13
7.1.00.0070.04018.76
7.0.310.0170.00315.18
7.0.300.0120.01215.25
7.0.290.0120.00815.20
7.0.280.0060.00614.80
7.0.270.0140.01015.21
7.0.260.0120.01215.42
7.0.250.0170.00615.29
7.0.240.0160.00715.37
7.0.230.0110.01115.23
7.0.220.0180.00315.52
7.0.210.0170.00715.33
7.0.200.0080.00615.89
7.0.190.0110.00715.21
7.0.180.0140.00415.14
7.0.170.0150.00615.35
7.0.160.0040.01915.28
7.0.150.0130.01015.27
7.0.140.0070.04418.61
7.0.130.0160.00515.43
7.0.120.0100.01015.25
7.0.110.0210.00015.25
7.0.100.0100.01015.26
7.0.90.0140.00515.00
7.0.80.0110.00915.19
7.0.70.0090.01315.37
7.0.60.0190.03318.54
7.0.50.0070.02416.57
7.0.40.0130.04217.64
7.0.30.0210.02617.81
7.0.20.0190.04217.66
7.0.10.0050.04417.63
7.0.00.0060.03417.85
5.6.380.0040.01214.37
5.6.370.0150.00814.20
5.6.360.0130.01014.11
5.6.350.0160.00314.27
5.6.340.0160.00314.41
5.6.330.0160.00314.56
5.6.320.0170.00614.05
5.6.310.0110.00813.81
5.6.300.0120.00913.80
5.6.290.0160.00414.10
5.6.280.0130.03817.81
5.6.270.0110.01114.43
5.6.260.0140.00714.32
5.6.250.0130.01014.24
5.6.240.0170.00314.27
5.6.230.0090.01314.30
5.6.220.0080.01314.37
5.6.210.0080.02717.37
5.6.200.0120.02016.14
5.6.190.0080.03417.38
5.6.180.0180.04317.43
5.6.170.0290.03217.30
5.6.160.0090.04317.31
5.6.150.0090.02716.24
5.6.140.0100.04816.33
5.6.130.0050.02716.19
5.6.120.0070.02817.64
5.6.110.0060.02917.53
5.6.100.0210.03517.68
5.6.90.0210.03817.65
5.6.80.0100.04517.13
5.6.70.0160.00813.89
5.6.60.0140.00914.13
5.6.50.0160.00413.96
5.6.40.0200.00214.16
5.6.30.0170.00514.20
5.6.20.0120.00914.25
5.6.10.0110.01114.14
5.6.00.0110.01114.10
5.5.380.0110.00510.93
5.5.370.0060.01211.08
5.5.360.0150.00311.00
5.5.350.0200.03915.82
5.5.340.0090.04414.55
5.5.330.0130.03315.80
5.5.320.0150.02615.66
5.5.310.0180.04015.73
5.5.300.0050.03214.31
5.5.290.0140.02514.47
5.5.280.0060.05115.89
5.5.270.0090.04215.76
5.5.260.0050.03815.65
5.5.250.0100.03315.94
5.5.240.0200.04215.53
5.5.230.0120.00311.02
5.5.220.0130.00310.67
5.5.210.0110.00510.83
5.5.200.0040.01310.98
5.5.190.0130.00311.11
5.5.180.0030.01310.74
5.5.170.0130.00914.02
5.5.160.0150.00311.20
5.5.150.0130.00311.11
5.5.140.0130.00010.81
5.5.130.0100.00510.85
5.5.120.0060.00910.80
5.5.110.0070.01111.00
5.5.100.0100.00710.89
5.5.90.0140.00011.06
5.5.80.0080.01111.14
5.5.70.0040.01311.09
5.5.60.0110.00510.54
5.5.50.0100.00511.14
5.5.40.0120.00410.75
5.5.30.0050.01210.87
5.5.20.0090.00610.85
5.5.10.0060.00911.04
5.5.00.0060.00811.00
5.4.450.1740.02015.24
5.4.440.2060.02015.37
5.4.430.2020.02215.24
5.4.420.1980.02315.30
5.4.410.1920.02515.20
5.4.400.2050.01814.82
5.4.390.2010.01815.06
5.4.380.1980.02115.06
5.4.370.0110.03215.05
5.4.360.1210.02015.02
5.4.350.2280.02114.95
5.4.340.1980.02314.99
5.4.330.0150.00010.76
5.4.320.2290.01914.99
5.4.310.2190.02215.08
5.4.300.2130.02715.08
5.4.290.1810.02614.89
5.4.280.0110.04015.16
5.4.270.1530.01814.93
5.4.260.2140.02315.07
5.4.250.2250.01914.83
5.4.240.2050.01914.95
5.4.230.2080.02115.10
5.4.220.2130.02715.05
5.4.210.2070.02014.99
5.4.200.1870.02415.19
5.4.190.1980.02115.06
5.4.180.1970.02615.15
5.4.170.2040.01815.15
5.4.160.1980.02315.07
5.4.150.2050.01615.15
5.4.140.2120.01513.64
5.4.130.2310.01713.65
5.4.120.2350.01713.50
5.4.110.2360.02113.77
5.4.100.2340.02513.72
5.4.90.2320.02213.75
5.4.80.2300.02013.67
5.4.70.2360.02013.59
5.4.60.2370.02313.74
5.4.50.2190.01913.51
5.4.40.1800.02213.79
5.4.30.1600.02213.65
5.4.20.1920.01513.67
5.4.10.1920.01813.60
5.4.00.1930.01513.45
5.3.290.2200.02012.63
5.3.280.1970.01912.47
5.3.270.2020.02312.66
5.3.260.2080.01612.54
5.3.250.1820.02512.60
5.3.240.2340.01912.46
5.3.230.2420.02012.57
5.3.220.2160.02512.45
5.3.210.2170.02212.54
5.3.200.2350.02012.50
5.3.190.2340.02312.56
5.3.180.2310.02012.50
5.3.170.2260.01812.54
5.3.160.2070.02112.64
5.3.150.2330.02512.65
5.3.140.2340.02412.48
5.3.130.1980.02312.53
5.3.120.1850.02212.55
5.3.110.1890.01912.32
5.3.100.1880.02012.31
5.3.90.1870.02312.29
5.3.80.1850.02312.22
5.3.70.1920.01712.19
5.3.60.1890.01812.34
5.3.50.1930.01512.19
5.3.40.1890.01512.22
5.3.30.1970.02412.21
5.3.20.2100.02312.04
5.3.10.2040.02011.99
5.3.00.1970.02311.89
5.2.170.1520.01910.40
5.2.160.1620.01010.36
5.2.150.1790.01710.42
5.2.140.1530.01910.33
5.2.130.1630.01510.33
5.2.120.1560.01310.33
5.2.110.1590.01310.37
5.2.100.1720.01310.29
5.2.90.1690.01410.28
5.2.80.2410.02010.23
5.2.70.1940.02110.13
5.2.60.1830.01510.05
5.2.50.1870.01810.21
5.2.40.1430.01610.14
5.2.30.1370.01910.24
5.2.20.1400.01510.02
5.2.10.1350.01710.14
5.2.00.1630.0219.97
5.1.60.1580.0179.23
5.1.50.1390.0139.28
5.1.40.1360.0139.29
5.1.30.1290.0129.50
5.1.20.1360.0189.54
5.1.10.1290.0169.36
5.1.00.1390.0159.31
5.0.50.0710.0128.12
5.0.40.0730.0128.01
5.0.30.0640.0197.84
5.0.20.0860.0127.79
5.0.10.0630.0117.73
5.0.00.0700.0187.54
4.4.90.0770.0086.09
4.4.80.0870.0116.11
4.4.70.0720.0126.11
4.4.60.0740.0106.13
4.4.50.0670.0126.07
4.4.40.0810.0126.09
4.4.30.0800.0086.07
4.4.20.0770.0146.14
4.4.10.0730.0116.17
4.4.00.0770.0136.11
4.3.110.0730.0126.05
4.3.100.0770.0126.07
4.3.90.0670.0106.02
4.3.80.0750.0196.04
4.3.70.0780.0106.06
4.3.60.0850.0076.03
4.3.50.0820.0056.10
4.3.40.0820.0136.02
4.3.30.0440.0135.93
4.3.20.0450.0115.93
4.3.10.0370.0135.93
4.3.00.0400.0115.93

preferences:
48.28 ms | 401 KiB | 5 Q