3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class First{ const id = __CLASS__; public static function start(){ static::run(new static); } protected static function run(First $instance){ echo __CLASS__, PHP_EOL; $instance->dynamicRun(); } protected function dynamicRun(){ echo self::id, PHP_EOL, get_class($this); } } class Second extends First{ const id = __CLASS__; public static function start(){ parent::run(new static); } } Second::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.40.0040.01418.71
8.3.30.0090.00618.57
8.3.20.0080.00018.69
8.3.10.0040.00420.36
8.3.00.0090.00019.25
8.2.170.0110.00422.96
8.2.160.0000.01522.16
8.2.150.0140.00024.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0040.00419.77
8.2.110.0060.00320.53
8.2.100.0120.00019.32
8.2.90.0030.00617.63
8.2.80.0060.00618.28
8.2.70.0030.00717.25
8.2.60.0000.00817.50
8.2.50.0060.00317.80
8.2.40.0000.00817.63
8.2.30.0060.00317.87
8.2.20.0000.00717.64
8.2.10.0000.00717.61
8.2.00.0000.00817.54
8.1.270.0000.00823.99
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00020.67
8.1.230.0050.00522.27
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0000.00817.11
8.1.190.0050.00317.10
8.1.180.0000.00818.10
8.1.170.0070.00017.62
8.1.160.0050.00218.70
8.1.150.0080.00018.44
8.1.140.0000.00717.31
8.1.130.0000.00717.71
8.1.120.0000.00717.22
8.1.110.0040.00417.28
8.1.100.0000.00717.22
8.1.90.0040.00417.32
8.1.80.0000.00717.37
8.1.70.0030.00317.27
8.1.60.0080.00017.54
8.1.50.0030.00617.26
8.1.40.0030.00617.34
8.1.30.0060.00317.51
8.1.20.0050.00317.42
8.1.10.0000.00717.49
8.1.00.0040.00417.41
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.41
8.0.270.0000.00817.25
8.0.260.0030.00318.34
8.0.250.0040.00417.10
8.0.240.0000.00816.97
8.0.230.0040.00416.91
8.0.220.0000.00816.90
8.0.210.0070.00016.90
8.0.200.0000.00616.98
8.0.190.0040.00416.96
8.0.180.0000.00716.79
8.0.170.0000.01116.93
8.0.160.0000.00716.96
8.0.150.0070.00316.76
8.0.140.0000.00716.76
8.0.130.0050.00013.31
8.0.120.0030.00516.89
8.0.110.0000.00716.86
8.0.100.0000.00716.94
8.0.90.0040.00416.79
8.0.80.0060.00916.70
8.0.70.0050.00316.76
8.0.60.0000.00716.63
8.0.50.0070.00016.72
8.0.30.0110.01017.02
8.0.20.0060.01217.40
8.0.10.0050.00216.81
8.0.00.0060.01116.68
7.4.330.0020.00213.43
7.4.320.0000.00616.50
7.4.300.0070.00016.41
7.4.290.0070.00016.51
7.4.280.0000.00716.43
7.4.270.0000.00716.58
7.4.260.0000.00513.16
7.4.250.0040.00416.48
7.4.240.0070.00016.42
7.4.230.0000.00716.51
7.4.220.0120.02116.42
7.4.210.0090.00516.41
7.4.200.0000.00716.31
7.4.190.0030.00316.61
7.4.160.0030.01216.34
7.4.150.0090.00817.40
7.4.140.0070.02017.29
7.4.130.0060.01116.52
7.4.120.0070.01016.58
7.4.110.0130.00316.41
7.4.100.0090.00916.33
7.4.90.0110.00716.32
7.4.80.0030.01318.80
7.4.70.0160.00316.30
7.4.60.0040.01316.50
7.4.50.0080.00016.32
7.4.40.0030.01322.27
7.4.30.0130.00716.41
7.4.00.0090.00614.79
7.3.330.0040.00413.24
7.3.320.0030.00313.13
7.3.310.0070.00016.22
7.3.300.0000.00716.10
7.3.290.0070.00716.22
7.3.280.0100.00716.26
7.3.270.0200.00317.40
7.3.260.0140.00918.24
7.3.250.0140.00616.33
7.3.240.0150.00816.16
7.3.230.0150.00616.39
7.3.210.0100.00716.32
7.3.200.0090.01219.39
7.3.190.0090.00916.54
7.3.180.0060.01016.32
7.3.170.0090.00916.27
7.3.160.0060.00916.51
7.3.120.0090.00314.80
7.2.330.0070.01016.77
7.2.320.0060.01116.68
7.2.310.0090.00916.71
7.2.300.0080.00816.74
7.2.290.0060.01516.52
7.2.00.0060.00619.43
7.1.100.0060.00918.20
7.1.70.0040.00417.13
7.1.60.0060.00919.40
7.1.50.0000.02116.95
7.1.00.0100.05322.33
7.0.200.0030.00316.79
7.0.140.0100.06722.08
7.0.60.0100.07020.03
7.0.50.0100.03717.87
7.0.40.0170.07017.72
7.0.30.0070.04017.84
7.0.20.0030.05017.76
7.0.10.0070.03717.72
7.0.00.0030.04017.84
5.6.280.0100.06721.11
5.6.210.0070.07020.51
5.6.200.0030.04318.16
5.6.190.0030.08318.16
5.6.180.0000.04318.23
5.6.170.0100.03318.19
5.6.160.0100.03318.22
5.6.150.0070.04718.13
5.6.140.0000.04018.18
5.6.130.0000.04318.18
5.6.120.0030.04018.21
5.6.110.0000.04318.22
5.6.100.0030.04018.20
5.6.90.0030.04018.16
5.6.80.0070.04717.63
5.6.70.0070.05717.50
5.6.60.0030.07717.54
5.6.50.0070.05717.54
5.6.40.0130.07017.53
5.6.30.0100.06717.55
5.6.20.0200.05317.58
5.6.10.0030.04017.49
5.6.00.0100.07317.50
5.5.350.0070.08320.44
5.5.340.0000.04717.95
5.5.330.0000.04318.05
5.5.320.0070.04318.10
5.5.310.0070.03717.93
5.5.300.0030.04017.93
5.5.290.0130.03017.96
5.5.280.0000.04317.94
5.5.270.0070.03717.94
5.5.260.0030.04018.04
5.5.250.0000.04017.79
5.5.240.0100.04017.39
5.5.230.0170.07017.35
5.5.220.0030.06017.33
5.5.210.0070.04317.46
5.5.200.0070.05717.40
5.5.190.0100.07317.34
5.5.180.0070.04017.30
5.5.160.0000.07017.28
5.5.150.0100.06317.30
5.5.140.0070.07717.30
5.5.130.0130.06717.40
5.5.120.0030.07017.31
5.5.110.0100.08317.29
5.5.100.0100.07717.30
5.5.90.0070.04317.23
5.5.80.0030.04717.28
5.5.70.0030.07017.20
5.5.60.0130.07017.19
5.5.50.0030.07717.24
5.5.40.0070.05017.17
5.5.30.0070.04317.19
5.5.20.0070.07017.16
5.5.10.0100.04717.23
5.5.00.0130.04017.21
5.4.450.0070.03719.36
5.4.440.0030.03719.43
5.4.430.0070.03319.34
5.4.420.0030.04019.33
5.4.410.0000.04019.29
5.4.400.0000.04019.14
5.4.390.0000.04718.98
5.4.380.0070.06719.12
5.4.370.0130.03719.02
5.4.360.0030.08019.05
5.4.350.0130.07019.09
5.4.340.0030.07719.05
5.4.320.0130.07319.00
5.4.310.0000.08019.02
5.4.300.0130.06319.11
5.4.290.0070.05019.11
5.4.280.0170.06019.01
5.4.270.0200.05718.95
5.4.260.0230.06319.01
5.4.250.0030.07019.11
5.4.240.0100.07019.13
5.4.230.0170.05319.05
5.4.220.0070.07719.04
5.4.210.0130.07019.04
5.4.200.0030.07718.99
5.4.190.0130.05318.95
5.4.180.0170.06718.98
5.4.170.0070.07719.26
5.4.160.0000.05018.97
5.4.150.0070.07319.08
5.4.140.0000.06716.36
5.4.130.0100.06716.45
5.4.120.0000.04716.43
5.4.110.0100.04016.64
5.4.100.0100.07016.30
5.4.90.0070.06716.50
5.4.80.0100.05316.50
5.4.70.0070.05316.27
5.4.60.0030.05316.30
5.4.50.0170.06316.42
5.4.40.0030.06316.38
5.4.30.0070.06716.56
5.4.20.0030.07716.58
5.4.10.0070.06016.32
5.4.00.0130.06315.87
5.3.290.0100.07014.67
5.3.280.0100.07714.64
5.3.270.0070.06014.65
5.3.260.0200.06314.60
5.3.250.0170.06714.61
5.3.240.0100.03714.68
5.3.230.0100.05314.63
5.3.220.0070.05014.60
5.3.210.0030.04014.78
5.3.200.0070.08014.53
5.3.190.0130.06714.79
5.3.180.0100.07014.58
5.3.170.0130.04714.53
5.3.160.0030.05714.56
5.3.150.0000.05314.61
5.3.140.0170.06314.53
5.3.130.0070.07714.40
5.3.120.0000.07714.59
5.3.110.0100.04714.54
5.3.100.0070.04714.09
5.3.90.0100.06013.87
5.3.80.0130.07314.04
5.3.70.0070.05314.00
5.3.60.0000.06314.01
5.3.50.0070.05314.02
5.3.40.0030.07014.00
5.3.30.0100.04313.91
5.3.20.0030.04013.71
5.3.10.0030.03713.50
5.3.00.0100.05313.67
5.2.170.0030.05011.19
5.2.160.0070.06011.21
5.2.150.0030.06311.24
5.2.140.0030.03011.20
5.2.130.0100.02311.14
5.2.120.0030.03711.20
5.2.110.0070.05711.12
5.2.100.0070.04011.12
5.2.90.0000.03011.31
5.2.80.0070.03011.12
5.2.70.0030.05011.12
5.2.60.0030.04011.12
5.2.50.0000.04311.12
5.2.40.0030.04311.12
5.2.30.0070.06011.12
5.2.20.0000.05011.17
5.2.10.0030.05711.12
5.2.00.0030.06311.12
5.1.60.0130.03711.12
5.1.50.0070.05011.12
5.1.40.0030.04711.12
5.1.30.0100.05011.12
5.1.20.0030.05711.12
5.1.10.0070.05011.12
5.1.00.0070.05311.12
5.0.50.0100.03711.12
5.0.40.0000.02711.12
5.0.30.0030.03711.12
5.0.20.0030.04711.12
5.0.10.0000.05011.12
5.0.00.0030.03311.12
4.4.90.0000.03711.12
4.4.80.0000.02011.12
4.4.70.0000.03711.12
4.4.60.0030.03011.12
4.4.50.0030.02711.12
4.4.40.0000.05311.12
4.4.30.0000.03711.12
4.4.20.0070.01311.12
4.4.10.0000.02311.12
4.4.00.0070.04711.12
4.3.110.0000.02011.12
4.3.100.0070.03311.12
4.3.90.0000.02711.12
4.3.80.0000.04311.12
4.3.70.0000.03011.12
4.3.60.0030.02011.12
4.3.50.0100.02011.12
4.3.40.0000.05011.12
4.3.30.0030.01311.12
4.3.20.0000.03011.12
4.3.10.0000.03011.12
4.3.00.0000.01711.12

preferences:
37.72 ms | 400 KiB | 5 Q