3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class F { const id = __CLASS__; public static function start() { static::run(new static); } protected static function run(F $f) { echo __CLASS__, PHP_EOL; $f->dynamicRun(); } protected function dynamicRun() { echo self::id, PHP_EOL, get_class($this); } } class S extends F { const id = __CLASS__; protected static function run(F $f) { echo __CLASS__, PHP_EOL; parent::run($f); } } S::start();

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.0100.01018.30
8.3.50.0100.00517.23
8.3.40.0180.00318.59
8.3.30.0070.00718.67
8.3.20.0040.00418.48
8.3.10.0080.00020.36
8.3.00.0050.00319.38
8.2.180.0140.00716.38
8.2.170.0090.00922.96
8.2.160.0100.00322.27
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0080.00019.83
8.2.110.0070.00322.43
8.2.100.0080.00419.27
8.2.90.0050.00317.63
8.2.80.0000.00817.91
8.2.70.0040.00417.50
8.2.60.0000.00817.91
8.2.50.0050.00318.07
8.2.40.0000.00819.88
8.2.30.0060.00318.05
8.2.20.0050.00217.54
8.2.10.0050.00217.50
8.2.00.0050.00317.65
8.1.280.0060.00925.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0030.00622.44
8.1.230.0070.00719.09
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00617.23
8.1.190.0000.00817.16
8.1.180.0040.00418.10
8.1.170.0060.00318.77
8.1.160.0040.00418.75
8.1.150.0070.00018.42
8.1.140.0040.00417.18
8.1.130.0000.00717.73
8.1.120.0000.00717.33
8.1.110.0060.00317.37
8.1.100.0050.00317.34
8.1.90.0040.00417.32
8.1.80.0030.00417.32
8.1.70.0030.00517.22
8.1.60.0030.00617.52
8.1.50.0040.00417.39
8.1.40.0070.00017.37
8.1.30.0080.00017.49
8.1.20.0040.00417.43
8.1.10.0040.00417.38
8.1.00.0000.00717.45
8.0.300.0000.00719.65
8.0.290.0000.00716.88
8.0.280.0030.00318.47
8.0.270.0030.00317.18
8.0.260.0030.00318.59
8.0.250.0040.00417.02
8.0.240.0050.00517.02
8.0.230.0040.00416.85
8.0.220.0030.00316.92
8.0.210.0000.00716.85
8.0.200.0000.00616.93
8.0.190.0030.00316.92
8.0.180.0040.00416.78
8.0.170.0070.00416.82
8.0.160.0030.00516.84
8.0.150.0070.00316.84
8.0.140.0050.00316.85
8.0.130.0000.00513.31
8.0.120.0070.00016.88
8.0.110.0040.00416.94
8.0.100.0000.00716.79
8.0.90.0070.00016.69
8.0.80.0150.00316.82
8.0.70.0050.00216.88
8.0.60.0000.00816.69
8.0.50.0000.00816.68
8.0.30.0110.01417.10
8.0.20.0110.01217.40
8.0.10.0040.00416.87
8.0.00.0110.00616.56
7.4.330.0000.00513.43
7.4.320.0000.00716.48
7.4.300.0040.00416.50
7.4.290.0030.00316.63
7.4.280.0040.00416.59
7.4.270.0070.00016.57
7.4.260.0030.00313.29
7.4.250.0030.00616.57
7.4.240.0050.00316.64
7.4.230.0040.00216.59
7.4.220.0100.01616.28
7.4.210.0050.01016.54
7.4.200.0030.00316.27
7.4.190.0020.00516.70
7.4.160.0060.01016.40
7.4.150.0110.01117.40
7.4.140.0110.01117.17
7.4.130.0080.00816.38
7.4.120.0120.00416.48
7.4.110.0060.01216.53
7.4.100.0090.00916.38
7.4.90.0040.01416.47
7.4.80.0070.01018.80
7.4.70.0070.01016.39
7.4.60.0100.00716.47
7.4.50.0000.00816.20
7.4.40.0080.00522.27
7.4.30.0100.00716.53
7.4.00.0110.00414.85
7.3.330.0030.00313.21
7.3.320.0030.00313.05
7.3.310.0030.00316.25
7.3.300.0030.00316.19
7.3.290.0040.01116.23
7.3.280.0070.00816.22
7.3.270.0090.00917.40
7.3.260.0160.00618.24
7.3.250.0140.00716.45
7.3.240.0100.00716.42
7.3.230.0060.01216.39
7.3.210.0040.01416.37
7.3.200.0140.00619.39
7.3.190.0120.00616.36
7.3.180.0100.01316.43
7.3.170.0080.00816.43
7.3.160.0030.01316.24
7.3.120.0030.01314.86
7.3.10.0030.00816.58
7.3.00.0070.00316.37
7.2.330.0150.00316.70
7.2.320.0030.01316.70
7.2.310.0070.01716.65
7.2.300.0100.00716.70
7.2.290.0110.00616.77
7.2.130.0070.00716.79
7.2.120.0080.00316.86
7.2.110.0020.01016.72
7.2.100.0010.01216.72
7.2.90.0040.00816.72
7.2.80.0080.00516.88
7.2.70.0040.00816.87
7.2.60.0030.00816.76
7.2.50.0070.00616.90
7.2.40.0060.00516.84
7.2.30.0090.00216.61
7.2.20.0040.00816.77
7.2.10.0050.00616.85
7.2.00.0040.00817.40
7.1.250.0080.00415.69
7.1.240.0080.00015.49
7.1.230.0000.01215.86
7.1.220.0000.01415.39
7.1.210.0030.00515.38
7.1.200.0020.00915.63
7.1.190.0030.01115.27
7.1.180.0030.00715.73
7.1.170.0040.00815.89
7.1.160.0000.01015.30
7.1.150.0030.01315.57
7.1.140.0030.00915.78
7.1.130.0070.00715.49
7.1.120.0000.01115.59
7.1.110.0000.01015.76
7.1.100.0050.00916.67
7.1.90.0030.00715.82
7.1.80.0070.00715.50
7.1.70.0060.00616.46
7.1.60.0110.00617.60
7.1.50.0100.00716.38
7.1.40.0100.00315.36
7.1.30.0060.00615.54
7.1.20.0060.00615.61
7.1.10.0060.00615.49
7.1.00.0070.02719.15
7.0.330.0080.00314.93
7.0.320.0080.00014.88
7.0.310.0040.01115.24
7.0.300.0030.01315.32
7.0.290.0030.00715.27
7.0.280.0000.01015.21
7.0.270.0030.00615.15
7.0.260.0080.00015.03
7.0.250.0030.01015.39
7.0.240.0030.00515.43
7.0.230.0070.00715.20
7.0.220.0080.00415.15
7.0.210.0060.00615.34
7.0.200.0060.00616.13
7.0.190.0030.01015.32
7.0.180.0070.00715.25
7.0.170.0040.00815.29
7.0.160.0030.00615.27
7.0.150.0060.00315.30
7.0.140.0020.04318.76
7.0.130.0000.00915.46
7.0.120.0030.00915.22
7.0.110.0050.00515.31
7.0.100.0030.00615.22
7.0.90.0030.00715.21
7.0.80.0110.00415.22
7.0.70.0000.01015.31
7.0.60.0060.03017.62
7.0.50.0050.04816.62
7.0.40.0080.04115.55
7.0.30.0110.03815.65
7.0.20.0030.03515.63
7.0.10.0050.02315.40
7.0.00.0110.03815.63
5.6.380.0000.01014.41
5.6.370.0000.01213.80
5.6.360.0040.00714.38
5.6.350.0060.00614.34
5.6.340.0030.00614.11
5.6.330.0000.01414.10
5.6.320.0090.00314.02
5.6.310.0040.00814.29
5.6.300.0060.00614.20
5.6.290.0000.00914.42
5.6.280.0080.03817.32
5.6.270.0030.00914.38
5.6.260.0040.00714.42
5.6.250.0040.00414.27
5.6.240.0040.00714.00
5.6.230.0060.00913.98
5.6.220.0000.01414.16
5.6.210.0090.03817.38
5.6.200.0050.03316.11
5.6.190.0070.04116.22
5.6.180.0050.04616.14
5.6.170.0020.03116.11
5.6.160.0060.04316.05
5.6.150.0070.04016.09
5.6.140.0020.02716.00
5.6.130.0030.02516.24
5.6.120.0030.04016.09
5.6.110.0070.03516.15
5.6.100.0050.04116.22
5.6.90.0030.03616.17
5.6.80.0050.03815.93
5.6.70.0090.02815.82
5.6.60.0030.02515.89
5.6.50.0070.04415.81
5.6.40.0070.03315.89
5.6.30.0090.03915.85
5.6.20.0080.04415.91
5.6.10.0050.04015.73
5.6.00.0070.04015.94
5.5.380.0050.00510.80
5.5.370.0070.00410.97
5.5.360.0060.00610.89
5.5.350.0070.04315.58
5.5.340.0030.04414.44
5.5.330.0090.03514.73
5.5.320.0050.03514.42
5.5.310.0080.04114.37
5.5.300.0110.03514.47
5.5.290.0080.03814.41
5.5.280.0070.03014.58
5.5.270.0020.04414.36
5.5.260.0070.03314.58
5.5.250.0050.04114.39
5.5.240.0030.02814.25
5.5.230.0040.04614.17
5.5.220.0020.04014.20
5.5.210.0050.02714.15
5.5.200.0080.03714.23
5.5.190.0080.02114.24
5.5.180.0080.03814.20
5.5.170.0070.00010.70
5.5.160.0020.03514.08
5.5.150.0040.04014.07
5.5.140.0070.04014.23
5.5.130.0060.03414.24
5.5.120.0080.03214.25
5.5.110.0100.03814.33
5.5.100.0100.03814.16
5.5.90.0030.03414.15
5.5.80.0050.03014.09
5.5.70.0060.02614.10
5.5.60.0080.02513.85
5.5.50.0050.03614.14
5.5.40.0050.03313.98
5.5.30.0070.03614.20
5.5.20.0030.04214.15
5.5.10.0040.02214.20
5.5.00.0060.03913.94
5.4.450.0070.04215.16
5.4.440.0030.03714.95
5.4.430.0090.03815.19
5.4.420.0030.02715.16
5.4.410.0070.04015.08
5.4.400.0040.03215.08
5.4.390.0030.04314.85
5.4.380.0030.04014.96
5.4.370.0090.03414.91
5.4.360.0030.04014.91
5.4.350.0030.03015.01
5.4.340.0070.03515.05
5.4.330.0030.00610.57
5.4.320.0080.02615.21
5.4.310.0080.04015.03
5.4.300.0080.02615.07
5.4.290.0100.03314.93
5.4.280.0070.02814.98
5.4.270.0050.02715.11
5.4.260.0120.04014.98
5.4.250.0050.03614.88
5.4.240.0030.03215.00
5.4.230.0020.02814.81
5.4.220.0100.03814.95
5.4.210.0070.04014.82
5.4.200.0080.02314.81
5.4.190.0030.03214.89
5.4.180.0090.03114.80
5.4.170.0020.03014.96
5.4.160.0120.02214.87
5.4.150.0070.04015.06
5.4.140.0020.04413.65
5.4.130.0030.03813.69
5.4.120.0050.02413.68
5.4.110.0020.03013.69
5.4.100.0050.04013.75
5.4.90.0070.02013.77
5.4.80.0050.04013.66
5.4.70.0060.03813.85
5.4.60.0050.03913.68
5.4.50.0080.03713.70
5.4.40.0030.02913.71
5.4.30.0020.02513.80
5.4.20.0060.03813.50
5.4.10.0110.02813.73
5.4.00.0040.04013.40
5.3.290.0030.02712.69
5.3.280.0050.04112.59
5.3.270.0070.02012.63
5.3.260.0080.03712.62
5.3.250.0060.03612.47
5.3.240.0080.03712.48
5.3.230.0100.02512.56
5.3.220.0030.02712.33
5.3.210.0050.03212.50
5.3.200.0030.04012.47
5.3.190.0070.03012.51
5.3.180.0070.03912.55
5.3.170.0030.03812.58
5.3.160.0080.03012.42
5.3.150.0070.02012.61
5.3.140.0050.03512.52
5.3.130.0050.03612.66
5.3.120.0060.04112.58
5.3.110.0060.04012.50
5.3.100.0050.03512.36
5.3.90.0060.03612.34
5.3.80.0020.03412.23
5.3.70.0030.03012.20
5.3.60.0060.03512.20
5.3.50.0050.03912.09
5.3.40.0030.04412.15
5.3.30.0060.04112.25
5.3.20.0020.04112.14
5.3.10.0020.04012.00
5.3.00.0050.03811.99
5.2.170.0020.03210.54
5.2.160.0020.03610.53
5.2.150.0050.03210.54
5.2.140.0040.03210.65
5.2.130.0020.03310.52
5.2.120.0030.02610.52
5.2.110.0030.03610.56
5.2.100.0030.03310.51
5.2.90.0030.03110.55
5.2.80.0030.02510.62
5.2.70.0030.01810.56
5.2.60.0060.02510.52
5.2.50.0020.03310.48
5.2.40.0070.01710.48
5.2.30.0010.03110.41
5.2.20.0050.02910.40
5.2.10.0020.02210.42
5.2.00.0030.03510.35
5.1.60.0100.02310.00
5.1.50.0050.02810.01
5.1.40.0020.03210.07
5.1.30.0030.03010.11
5.1.20.0050.02910.15
5.1.10.0060.02810.03
5.1.00.0030.0239.98
5.0.50.0020.0279.23
5.0.40.0030.0229.22
5.0.30.0020.0279.12
5.0.20.0030.0129.03
5.0.10.0050.0109.09
5.0.00.0040.0308.97
4.4.90.0020.0228.88
4.4.80.0020.0128.88
4.4.70.0020.0178.88
4.4.60.0020.0138.88
4.4.50.0000.0148.88
4.4.40.0030.0208.88
4.4.30.0030.0148.88
4.4.20.0050.0128.88
4.4.10.0020.0208.88
4.4.00.0020.0308.88
4.3.110.0030.0168.88
4.3.100.0020.0188.88
4.3.90.0000.0128.88
4.3.80.0020.0178.88
4.3.70.0010.0108.88
4.3.60.0030.0088.88
4.3.50.0010.0108.88
4.3.40.0000.0158.88
4.3.30.0030.0098.88
4.3.20.0020.0088.88
4.3.10.0010.0108.88
4.3.00.0000.0158.88

preferences:
46.71 ms | 401 KiB | 5 Q