3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class AbClass { const ABC = "12345"; public function printThing() { echo self::ABC . PHP_EOL; } } class Sub extends AbClass { protected $thing2; public function __construct() { $this->thing2 = "def"; } public function printThing() { parent::printThing(); echo self::ABC . PHP_EOL; echo $this->thing2 . PHP_EOL; } } $s = new Sub(); $s->printThing();

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.70.0070.01016.50
8.3.60.0090.00618.30
8.3.50.0110.00916.59
8.3.40.0090.00618.79
8.3.30.0070.00718.55
8.3.20.0000.00818.80
8.3.10.0030.00620.66
8.3.00.0090.00017.35
8.2.180.0120.00616.50
8.2.170.0070.00722.96
8.2.160.0170.00322.05
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0030.00526.16
8.2.120.0150.00319.63
8.2.110.0030.00622.29
8.2.100.0120.00017.91
8.2.90.0080.00019.26
8.2.80.0090.00017.97
8.2.70.0000.00817.63
8.2.60.0040.00418.04
8.2.50.0000.01218.10
8.2.40.0000.00720.59
8.2.30.0040.00419.23
8.2.20.0070.00017.58
8.2.10.0030.00617.54
8.2.00.0050.00517.59
8.1.280.0070.00725.92
8.1.270.0120.00623.99
8.1.260.0100.00326.35
8.1.250.0050.00228.09
8.1.240.0090.00020.97
8.1.230.0110.00019.10
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00817.35
8.1.190.0000.00917.25
8.1.180.0080.00018.10
8.1.170.0000.00718.55
8.1.160.0060.00318.92
8.1.150.0040.00422.06
8.1.140.0040.00417.32
8.1.130.0030.00317.73
8.1.120.0000.00717.44
8.1.110.0040.00417.45
8.1.100.0000.00717.48
8.1.90.0000.00817.43
8.1.80.0000.00817.41
8.1.70.0000.00717.42
8.1.60.0050.00317.46
8.1.50.0040.00417.37
8.1.40.0040.00417.50
8.1.30.0050.00317.66
8.1.20.0000.00917.55
8.1.10.0040.00417.60
8.1.00.0000.00717.37
8.0.300.0000.00818.77
8.0.290.0090.00016.63
8.0.280.0000.00718.41
8.0.270.0000.00717.19
8.0.260.0000.00616.83
8.0.250.0040.00416.88
8.0.240.0040.00716.92
8.0.230.0070.00016.91
8.0.220.0000.00716.77
8.0.210.0000.00716.89
8.0.200.0060.00016.91
8.0.190.0040.00416.96
8.0.180.0000.00716.97
8.0.170.0040.00416.82
8.0.160.0030.00317.03
8.0.150.0050.00316.70
8.0.140.0000.00816.82
8.0.130.0000.00613.28
8.0.120.0030.00616.86
8.0.110.0000.00716.75
8.0.100.0040.00416.96
8.0.90.0040.00316.91
8.0.80.0070.01016.89
8.0.70.0040.00416.78
8.0.60.0050.00216.72
8.0.50.0070.00017.00
8.0.30.0140.00517.05
8.0.20.0160.00217.19
8.0.10.0030.00417.06
8.0.00.0150.00516.83
7.4.330.0000.00514.88
7.4.320.0000.00716.59
7.4.300.0030.00316.48
7.4.290.0040.00416.55
7.4.280.0000.00916.65
7.4.270.0060.00016.53
7.4.260.0000.00513.18
7.4.250.0040.00416.48
7.4.240.0070.00016.58
7.4.230.0070.00016.68
7.4.220.0040.01116.70
7.4.210.0070.00816.59
7.4.200.0030.00316.68
7.4.190.0030.00316.60
7.4.160.0130.00416.36
7.4.150.0120.01217.07
7.4.140.0130.00517.18
7.4.130.0090.00916.51
7.4.120.0070.00916.54
7.4.110.0090.00916.57
7.4.100.0090.00916.49
7.4.90.0100.00716.46
7.4.80.0120.00918.80
7.4.70.0080.00816.45
7.4.60.0080.00816.66
7.4.50.0000.00616.36
7.4.40.0070.01122.26
7.4.30.0030.01316.43
7.4.00.0070.01114.75
7.3.330.0050.00313.31
7.3.320.0050.00213.10
7.3.310.0040.00416.42
7.3.300.0060.00016.14
7.3.290.0000.01416.32
7.3.280.0040.01116.28
7.3.270.0070.01017.07
7.3.260.0050.01118.24
7.3.250.0110.00716.42
7.3.240.0110.00616.52
7.3.230.0160.00016.47
7.3.210.0140.00316.16
7.3.200.0160.01019.39
7.3.190.0140.00616.45
7.3.180.0030.01216.43
7.3.170.0160.00016.50
7.3.160.0070.00816.45
7.3.120.0100.01014.57
7.3.110.0070.01014.84
7.3.100.0090.00314.71
7.3.90.0000.01414.77
7.3.80.0070.01014.64
7.3.70.0070.00714.91
7.3.60.0110.00714.68
7.3.50.0060.01314.37
7.3.40.0060.00314.66
7.3.30.0030.01014.72
7.3.20.0040.01416.70
7.3.10.0120.00516.54
7.3.00.0120.00816.59
7.2.330.0140.00316.75
7.2.320.0110.00716.80
7.2.310.0030.01716.77
7.2.300.0060.01016.41
7.2.290.0060.01116.54
7.2.240.0100.01015.23
7.2.230.0040.01115.16
7.2.220.0000.01314.91
7.2.210.0040.01114.97
7.2.200.0030.01015.03
7.2.190.0110.00714.88
7.2.180.0100.00315.18
7.2.170.0060.00615.10
7.2.160.0080.00814.81
7.2.150.0090.00616.95
7.2.140.0040.00816.77
7.2.130.0140.00616.79
7.2.120.0110.01316.67
7.2.110.0110.00816.69
7.2.100.0140.00716.67
7.2.90.0110.00716.76
7.2.80.0150.00916.79
7.2.70.0130.00416.77
7.2.60.0110.00616.55
7.2.50.0140.00416.63
7.2.40.0100.01116.88
7.2.30.0130.01116.74
7.2.20.0090.00916.92
7.2.10.0110.01116.87
7.2.00.0100.00916.78
7.1.330.0030.01315.68
7.1.320.0040.01115.93
7.1.310.0000.01115.87
7.1.300.0060.00915.78
7.1.290.0030.00615.79
7.1.280.0000.01015.76
7.1.270.0040.01215.64
7.1.260.0080.00015.86
7.1.250.0140.00515.65
7.1.70.0030.00317.13
7.1.60.0110.01419.40
7.1.50.0040.01816.94
7.1.00.0100.06022.35
7.0.200.0030.00316.74
7.0.140.0030.07322.02
7.0.120.0000.03322.12
7.0.60.0030.04019.88
7.0.50.0070.05017.85
7.0.40.0030.04020.13
7.0.30.0100.04320.11
7.0.20.0030.04020.39
7.0.10.0030.04320.24
7.0.00.0030.04020.20
5.6.280.0000.07721.02
5.6.210.0000.04320.63
5.6.200.0070.06718.20
5.6.190.0030.04320.64
5.6.180.0100.03020.47
5.6.170.0030.04020.45
5.6.160.0130.03320.64
5.6.150.0100.03320.19
5.6.140.0130.03720.50
5.6.130.0070.03720.31
5.6.120.0000.04320.19
5.6.110.0200.04720.51
5.6.100.0030.04020.16
5.6.90.0070.04020.21
5.6.80.0000.04019.73
5.6.70.0100.03719.72
5.6.60.0030.07019.77
5.6.50.0070.06019.57
5.6.40.0070.08019.80
5.6.30.0030.07719.68
5.6.20.0070.07719.73
5.6.10.0000.08319.53
5.6.00.0100.07319.68
5.5.350.0230.07320.47
5.5.340.0070.08017.95
5.5.330.0070.03720.43
5.5.320.0000.06320.36
5.5.310.0030.04320.29
5.5.300.0030.04320.33
5.5.290.0000.04319.98
5.5.280.0000.05019.97
5.5.270.0030.03719.96
5.5.260.0070.04319.96
5.5.250.0030.04319.93
5.5.240.0030.04019.64
5.5.230.0070.04019.70
5.5.220.0000.08719.51
5.5.210.0070.08019.67
5.5.200.0000.07719.65
5.5.190.0100.05019.67
5.5.180.0030.05719.59
5.5.160.0170.06319.65
5.5.150.0070.04019.34
5.5.140.0130.04719.47
5.5.130.0070.06019.32
5.5.120.0000.07019.65
5.5.110.0100.05019.48
5.5.100.0030.07719.38
5.5.90.0100.05719.25
5.5.80.0100.07019.54
5.5.70.0100.07019.45
5.5.60.0030.04719.36
5.5.50.0070.07719.54
5.5.40.0000.08019.27
5.5.30.0070.04019.37
5.5.20.0030.05719.28
5.5.10.0030.07719.42
5.5.00.0270.04319.45
5.4.450.0000.04019.20
5.4.440.0030.04019.21
5.4.430.0000.04019.40
5.4.420.0030.03719.20
5.4.410.0030.03719.44
5.4.400.0000.03718.88
5.4.390.0030.03719.08
5.4.380.0030.04319.14
5.4.370.0030.05719.25
5.4.360.0070.07318.98
5.4.350.0100.07319.25
5.4.340.0030.08019.15
5.4.320.0130.07019.12
5.4.310.0030.04719.12
5.4.300.0100.04719.20
5.4.290.0000.08019.15
5.4.280.0030.05319.14
5.4.270.0100.06319.15
5.4.260.0070.07019.15
5.4.250.0070.07019.07
5.4.240.0030.08018.85
5.4.230.0030.06019.17
5.4.220.0200.06319.07
5.4.210.0070.07719.00
5.4.200.0130.06319.00
5.4.190.0000.07019.23
5.4.180.0030.05719.14
5.4.170.0070.07019.14
5.4.160.0030.07719.14
5.4.150.0100.07018.90
5.4.140.0030.05716.39
5.4.130.0070.05716.55
5.4.120.0030.06316.36
5.4.110.0000.04316.47
5.4.100.0030.04716.43
5.4.90.0030.07716.72
5.4.80.0000.05716.46
5.4.70.0000.07016.38
5.4.60.0030.07316.28
5.4.50.0100.07016.27
5.4.40.0070.06716.43
5.4.30.0070.06716.43
5.4.20.0000.07316.64
5.4.10.0030.08016.51
5.4.00.0030.07715.82
5.3.290.0030.07314.82
5.3.280.0030.07014.65
5.3.270.0070.08014.66
5.3.260.0100.08314.70
5.3.250.0000.06014.76
5.3.240.0070.05714.60
5.3.230.0100.06314.65
5.3.220.0030.06714.57
5.3.210.0070.06014.60
5.3.200.0070.07014.56
5.3.190.0100.05714.56
5.3.180.0030.07714.61
5.3.170.0030.08014.45
5.3.160.0070.05314.60
5.3.150.0030.05714.71
5.3.140.0030.07314.70
5.3.130.0030.07714.57
5.3.120.0070.08014.55
5.3.110.0230.05714.58
5.3.100.0070.07314.08
5.3.90.0070.07714.06
5.3.80.0100.05014.07
5.3.70.0030.07013.99
5.3.60.0070.07314.06
5.3.50.0030.07313.91
5.3.40.0070.04314.00
5.3.30.0070.03713.88
5.3.20.0030.05013.73
5.3.10.0100.06013.70
5.3.00.0100.05313.60
5.2.170.0000.04013.28
5.2.160.0030.04713.28
5.2.150.0000.03713.28
5.2.140.0000.06313.28
5.2.130.0030.06313.28
5.2.120.0000.05013.28
5.2.110.0030.06313.28
5.2.100.0070.06013.28
5.2.90.0030.06313.28
5.2.80.0030.05313.28
5.2.70.0030.06013.28
5.2.60.0070.03013.28
5.2.50.0100.04713.28
5.2.40.0030.04713.28
5.2.30.0000.06713.28
5.2.20.0170.04713.28
5.2.10.0070.05313.28
5.2.00.0030.06313.28
5.1.60.0000.05013.28
5.1.50.0030.05313.28
5.1.40.0070.05713.28
5.1.30.0030.04713.28
5.1.20.0030.06013.28
5.1.10.0170.05013.28
5.1.00.0130.04313.28
5.0.50.0100.02313.28
5.0.40.0200.03313.28
5.0.30.0000.07013.28
5.0.20.0070.03713.28
5.0.10.0030.03013.28
5.0.00.0030.05313.28
4.4.90.0000.02313.28
4.4.80.0030.03313.28
4.4.70.0000.04013.28
4.4.60.0070.03313.28
4.4.50.0000.03713.28
4.4.40.0030.05013.28
4.4.30.0000.03713.28
4.4.20.0000.03713.28
4.4.10.0000.04713.28
4.4.00.0070.03013.28
4.3.110.0070.03313.28
4.3.100.0070.03013.28
4.3.90.0000.02313.28
4.3.80.0030.02713.28
4.3.70.0030.01313.28
4.3.60.0000.01313.28
4.3.50.0030.01713.28
4.3.40.0170.02013.28
4.3.30.0100.03013.28
4.3.20.0000.03713.28
4.3.10.0000.03713.28
4.3.00.0070.01713.28

preferences:
39.55 ms | 401 KiB | 5 Q