3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A { public function __construct() { echo '__CLASS__: ', __CLASS__, "\n"; echo 'get_class(): ', get_class(), "\n"; echo 'get_class($this): ', get_class($this), "\n"; } } class B extends A { public function __construct() { parent::__construct(); } } new A();

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.0060.00916.75
8.3.50.0110.00717.30
8.3.40.0090.00618.58
8.3.30.0070.00718.84
8.3.20.0060.00318.82
8.3.10.0070.01018.89
8.3.00.0040.00419.38
8.2.180.0130.00616.50
8.2.170.0120.00622.96
8.2.160.0120.00318.96
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00721.04
8.2.110.0070.00321.11
8.2.100.0070.00417.91
8.2.90.0060.00319.34
8.2.80.0050.00319.28
8.2.70.0030.00517.63
8.2.60.0030.00617.80
8.2.50.0080.00019.23
8.2.40.0030.00618.22
8.2.30.0070.00317.85
8.2.20.0000.00817.60
8.2.10.0000.00717.67
8.2.00.0040.00717.73
8.1.280.0030.01025.92
8.1.270.0000.00823.99
8.1.260.0110.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00422.30
8.1.230.0070.00420.95
8.1.220.0040.00417.75
8.1.210.0040.00418.77
8.1.200.0000.00917.22
8.1.190.0030.00517.40
8.1.180.0040.00418.10
8.1.170.0080.00018.84
8.1.160.0000.00718.80
8.1.150.0050.00218.43
8.1.140.0030.00617.23
8.1.130.0040.00417.74
8.1.120.0000.00717.23
8.1.110.0000.00917.36
8.1.100.0000.00817.22
8.1.90.0040.00417.36
8.1.80.0050.00217.23
8.1.70.0080.00017.33
8.1.60.0040.00417.46
8.1.50.0040.00417.38
8.1.40.0030.00617.41
8.1.30.0040.00417.60
8.1.20.0050.00317.57
8.1.10.0050.00217.54
8.1.00.0030.00617.30
8.0.300.0040.00419.73
8.0.290.0060.00316.75
8.0.280.0030.00318.25
8.0.270.0000.00817.07
8.0.260.0030.00316.83
8.0.250.0050.00216.86
8.0.240.0000.00716.85
8.0.230.0050.00216.94
8.0.220.0030.00316.78
8.0.210.0030.00616.93
8.0.200.0040.00416.95
8.0.190.0040.00416.99
8.0.180.0070.00016.82
8.0.170.0000.00816.72
8.0.160.0050.00216.91
8.0.150.0040.00416.87
8.0.140.0030.00516.88
8.0.130.0030.00313.28
8.0.120.0040.00416.90
8.0.110.0040.00416.76
8.0.100.0070.00016.82
8.0.90.0000.00716.92
8.0.80.0110.00316.93
8.0.70.0040.00416.74
8.0.60.0040.00416.94
8.0.50.0040.00416.72
8.0.30.0100.01016.91
8.0.20.0110.00917.08
8.0.10.0000.00716.80
8.0.00.0080.01016.73
7.4.330.0060.00012.81
7.4.320.0030.00316.48
7.4.300.0000.00816.55
7.4.290.0000.00716.52
7.4.280.0000.00816.53
7.4.270.0070.00016.42
7.4.260.0000.00513.20
7.4.250.0020.00516.41
7.4.240.0070.00016.43
7.4.230.0030.00316.27
7.4.220.0090.00916.49
7.4.210.0110.00416.47
7.4.200.0070.00016.64
7.4.190.0030.00316.51
7.4.160.0040.01116.44
7.4.150.0090.00916.62
7.4.140.0100.00716.50
7.4.130.0060.01516.51
7.4.120.0070.01016.37
7.4.110.0060.01316.49
7.4.100.0130.00616.41
7.4.90.0110.01116.51
7.4.80.0060.01019.39
7.4.70.0100.00716.29
7.4.60.0100.00716.38
7.4.50.0030.00516.52
7.4.40.0030.00616.36
7.4.30.0030.01216.57
7.4.00.0070.01014.73
7.3.330.0050.00013.07
7.3.320.0060.00013.34
7.3.310.0040.00416.18
7.3.300.0030.00316.21
7.3.290.0080.00916.31
7.3.280.0080.00816.26
7.3.270.0040.01416.50
7.3.260.0040.01216.36
7.3.250.0130.00416.35
7.3.240.0150.00316.48
7.3.230.0100.01216.48
7.3.210.0090.00916.32
7.3.200.0140.00716.35
7.3.190.0090.01216.59
7.3.180.0080.00816.27
7.3.170.0070.01116.64
7.3.160.0030.01316.48
7.3.120.0130.00014.50
7.3.10.0040.01116.77
7.3.00.0000.01016.56
7.2.330.0100.00716.41
7.2.320.0080.00816.29
7.2.310.0030.01616.55
7.2.300.0050.01316.52
7.2.290.0070.01116.61
7.2.130.0110.00016.84
7.2.120.0000.01416.84
7.2.110.0000.01516.80
7.2.100.0060.00316.91
7.2.90.0000.01416.57
7.2.80.0000.00916.75
7.2.70.0090.00516.67
7.2.60.0050.01016.74
7.2.50.0060.00616.88
7.2.40.0040.00816.86
7.2.30.0130.00016.58
7.2.20.0060.00916.94
7.2.10.0030.01016.86
7.2.00.0060.00818.10
7.1.250.0040.00415.68
7.1.200.0000.01515.68
7.1.100.0060.00617.69
7.1.70.0060.00617.11
7.1.60.0040.01119.30
7.1.50.0110.01116.79
7.1.00.0030.03322.37
7.0.200.0090.00316.32
7.0.140.0000.07322.21
7.0.60.0130.08020.07
7.0.50.0030.04017.95
7.0.40.0070.04320.07
7.0.30.0230.03720.07
7.0.20.0330.07020.15
7.0.10.0070.08320.34
7.0.00.0030.08320.32
5.6.280.0000.07721.10
5.6.210.0200.03720.48
5.6.200.0100.03718.18
5.6.190.0130.06720.67
5.6.180.0270.07320.39
5.6.170.0230.04720.71
5.6.160.0100.08020.61
5.6.150.0030.07018.14
5.6.140.0100.08018.19
5.6.130.0070.06718.15
5.6.120.0030.04021.00
5.6.110.0070.07320.97
5.6.100.0100.05721.09
5.6.90.0030.07321.04
5.6.80.0070.08320.43
5.5.350.0230.05020.39
5.5.340.0130.07317.95
5.5.330.0000.05320.45
5.5.320.0330.07320.31
5.5.310.0330.06720.27
5.5.300.0070.03718.00
5.5.290.0070.07317.98
5.5.280.0030.06020.88
5.5.270.0070.05720.80
5.5.260.0100.09020.65
5.5.250.0030.08020.70
5.5.240.0030.06320.16
5.4.450.0070.07019.48
5.4.440.0070.03719.57
5.4.430.0100.03319.48
5.4.420.0100.06719.40
5.4.410.0070.07719.45
5.4.400.0030.05719.15
5.4.390.0030.04318.93
5.4.380.0100.04319.24
5.4.370.0100.04319.15
5.4.360.0130.06019.24
5.4.350.0030.06318.93
5.4.340.0070.06319.24
5.4.320.0000.04319.12
5.4.310.0130.07719.24
5.4.300.0070.04718.84
5.4.290.0070.05319.00
5.4.280.0070.08319.26
5.4.270.0100.06018.87
5.4.260.0130.07719.16
5.4.250.0000.06319.15
5.4.240.0030.07318.84
5.4.230.0000.06318.97
5.4.220.0100.07019.14
5.4.210.0070.03718.98
5.4.200.0100.05718.91
5.4.190.0030.05018.93
5.4.180.0130.06019.23
5.4.170.0100.07719.19
5.4.160.0070.04718.98
5.4.150.0130.07019.13
5.4.140.0200.06316.39
5.4.130.0030.04716.46
5.4.120.0030.04716.55
5.4.110.0100.07016.42
5.4.100.0100.06016.32
5.4.90.0100.07316.39
5.4.80.0030.07316.37
5.4.70.0070.05016.34
5.4.60.0170.06716.36
5.4.50.0070.04316.34
5.4.40.0100.04316.46
5.4.30.0070.03316.40
5.4.20.0070.05016.49
5.4.10.0030.07716.53
5.4.00.0070.04315.77
5.3.290.0070.04014.67
5.3.280.0070.04314.60
5.3.270.0170.04014.66
5.3.260.0070.07714.62
5.3.250.0030.05714.60
5.3.240.0070.04714.52
5.3.230.0070.04314.67
5.3.220.0100.07014.61
5.3.210.0000.05314.75
5.3.200.0030.04714.59
5.3.190.0000.05014.59
5.3.180.0100.07014.64
5.3.170.0030.04714.58
5.3.160.0100.04714.57
5.3.150.0100.03314.62
5.3.140.0070.07014.52
5.3.130.0030.06314.71
5.3.120.0070.04314.55
5.3.110.0030.05314.57
5.3.100.0030.04014.09
5.3.90.0030.03714.09
5.3.80.0100.05714.03
5.3.70.0070.04314.04
5.3.60.0130.06714.04
5.3.50.0030.07313.95
5.3.40.0030.04714.02
5.3.30.0030.05313.91
5.3.20.0070.03713.75
5.3.10.0030.04713.80
5.3.00.0070.07313.61
5.2.170.0000.03711.30
5.2.160.0030.02711.12
5.2.150.0070.06011.11
5.2.140.0100.05311.20
5.2.130.0070.02711.00
5.2.120.0070.04711.11
5.2.110.0070.04711.25
5.2.100.0030.05711.14
5.2.90.0100.03011.10
5.2.80.0070.06311.07
5.2.70.0070.03311.17
5.2.60.0030.06310.95
5.2.50.0070.04711.07
5.2.40.0000.05311.06
5.2.30.0070.05311.03
5.2.20.0000.06010.98
5.2.10.0000.03010.90
5.2.00.0000.03010.79
5.1.60.0070.02310.06
5.1.50.0030.06010.15
5.1.40.0030.0509.88
5.1.30.0030.05710.37
5.1.20.0100.04310.40
5.1.10.0030.04010.14
5.1.00.0070.03310.04
5.0.50.0100.0378.59
5.0.40.0030.0408.39
5.0.30.0030.0608.38
5.0.20.0030.0408.25
5.0.10.0070.0438.25
5.0.00.0070.0638.07
4.4.90.0000.0378.00
4.4.80.0000.0378.00
4.4.70.0000.0208.00
4.4.60.0030.0138.00
4.4.50.0000.0178.00
4.4.40.0000.0238.00
4.4.30.0030.0378.00
4.4.20.0000.0408.00
4.4.10.0000.0238.00
4.4.00.0030.0508.00
4.3.110.0070.0308.00
4.3.100.0030.0378.00
4.3.90.0000.0238.00
4.3.80.0000.0438.00
4.3.70.0070.0238.00
4.3.60.0030.0338.00
4.3.50.0070.0308.00
4.3.40.0030.0438.00
4.3.30.0070.0208.00
4.3.20.0000.0208.00
4.3.10.0000.0178.00
4.3.00.0000.0178.00

preferences:
41.08 ms | 401 KiB | 5 Q