3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class First { protected $example; public function __construct() { $this->example = 'example'; } } class Second extends First { } $s = new Second(); var_dump($s->example);

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.0110.00416.60
8.3.50.0140.00622.05
8.3.40.0100.01019.01
8.3.30.0140.00018.98
8.3.20.0050.00320.33
8.3.10.0030.00623.37
8.3.00.0040.00419.50
8.2.180.0120.00316.50
8.2.170.0070.00722.96
8.2.160.0070.00722.12
8.2.150.0040.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00317.50
8.2.110.0030.00620.43
8.2.100.0080.00417.91
8.2.90.0060.00319.08
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0090.00019.46
8.2.30.0000.00720.64
8.2.20.0000.00817.59
8.2.10.0070.00017.96
8.2.00.0050.00217.87
8.1.280.0100.01025.92
8.1.270.0060.00323.76
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00019.01
8.1.230.0090.00417.66
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0000.00817.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0000.00719.03
8.1.160.0040.00421.97
8.1.150.0070.00018.89
8.1.140.0040.00419.56
8.1.130.0070.00017.65
8.1.120.0040.00417.30
8.1.110.0000.00817.41
8.1.100.0070.00017.42
8.1.90.0040.00417.44
8.1.80.0040.00417.43
8.1.70.0030.00317.41
8.1.60.0070.00017.61
8.1.50.0040.00417.56
8.1.40.0030.00517.48
8.1.30.0080.00017.63
8.1.20.0000.00817.57
8.1.10.0070.00317.56
8.1.00.0030.00517.49
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00718.26
8.0.270.0030.00317.16
8.0.260.0060.00017.26
8.0.250.0070.00017.00
8.0.240.0000.00817.05
8.0.230.0000.00716.98
8.0.220.0000.00716.90
8.0.210.0040.00416.88
8.0.200.0060.00016.97
8.0.190.0050.00316.83
8.0.180.0040.00416.89
8.0.170.0020.00516.83
8.0.160.0030.00616.79
8.0.150.0090.00016.80
8.0.140.0050.00316.88
8.0.130.0050.00313.25
8.0.120.0050.00316.73
8.0.110.0040.00416.91
8.0.100.0030.00516.95
8.0.90.0030.00416.80
8.0.80.0030.01616.85
8.0.70.0040.00416.82
8.0.60.0040.00416.75
8.0.50.0040.00416.79
8.0.30.0070.00817.24
8.0.20.0110.00817.40
8.0.10.0070.00016.82
8.0.00.0070.01316.84
7.4.330.0040.00415.08
7.4.320.0000.00616.42
7.4.300.0040.00416.50
7.4.290.0030.00316.61
7.4.280.0040.00416.61
7.4.270.0070.00016.44
7.4.260.0040.00416.47
7.4.250.0090.00016.57
7.4.240.0030.00416.52
7.4.230.0070.00016.41
7.4.220.0030.01516.50
7.4.210.0130.00616.61
7.4.200.0080.00016.67
7.4.160.0040.01116.66
7.4.150.0110.00717.40
7.4.140.0130.00817.86
7.4.130.0090.00916.59
7.4.120.0100.00716.63
7.4.110.0090.01016.51
7.4.100.0140.00616.57
7.4.90.0070.01016.46
7.4.80.0060.01519.39
7.4.70.0110.00516.39
7.4.60.0130.00316.33
7.4.50.0000.00816.20
7.4.40.0130.00316.31
7.4.30.0030.01416.49
7.4.00.0000.01515.16
7.3.330.0000.00613.39
7.3.320.0050.00013.18
7.3.310.0030.00316.25
7.3.300.0000.00716.30
7.3.290.0080.00916.33
7.3.280.0100.00816.39
7.3.270.0100.00717.40
7.3.260.0030.01416.36
7.3.250.0080.01016.40
7.3.240.0150.00516.49
7.3.230.0100.01016.39
7.3.210.0070.01016.33
7.3.200.0080.00816.33
7.3.190.0060.00916.23
7.3.180.0030.01316.46
7.3.170.0120.00916.30
7.3.160.0130.00316.30
7.3.10.0030.01016.53
7.3.00.0070.00416.56
7.2.330.0120.00916.56
7.2.320.0070.01716.73
7.2.310.0080.00816.79
7.2.300.0040.01316.63
7.2.290.0100.00716.41
7.2.130.0080.00317.01
7.2.120.0110.00316.95
7.2.110.0070.00316.95
7.2.100.0040.01116.86
7.2.90.0040.01216.73
7.2.80.0080.00617.15
7.2.70.0030.01316.86
7.2.60.0050.00916.71
7.2.50.0060.00616.70
7.2.40.0100.00316.87
7.2.30.0070.00416.71
7.2.20.0030.01016.64
7.2.10.0060.00617.00
7.2.00.0030.01118.01
7.1.250.0080.00415.86
7.1.200.0060.00615.80
7.1.100.0040.01517.88
7.1.70.0030.01016.86
7.1.60.0100.01319.43
7.1.50.0080.01117.05
7.1.00.0070.07322.44
7.0.200.0110.00514.57
7.0.60.0130.05719.95
7.0.50.0100.07717.86
7.0.40.0030.04319.96
7.0.30.0070.06020.10
7.0.20.0270.08020.19
7.0.10.0100.03720.24
7.0.00.0070.08320.14
5.6.280.0070.07020.86
5.6.210.0000.04320.52
5.6.200.0000.08718.18
5.6.190.0030.08720.62
5.6.180.0400.05720.33
5.6.170.0200.04020.48
5.6.160.0100.07720.51
5.6.150.0070.05718.22
5.6.140.0030.04318.15
5.6.130.0100.07718.28
5.6.120.0100.08020.90
5.6.110.0200.07720.97
5.6.100.0100.07720.99
5.6.90.0100.06720.93
5.6.80.0130.07720.29
5.5.350.0230.05020.46
5.5.340.0030.06717.98
5.5.330.0000.04720.36
5.5.320.0300.05720.29
5.5.310.0100.04720.51
5.5.300.0070.07017.96
5.5.290.0070.04717.95
5.5.280.0030.09320.94
5.5.270.0030.05320.89
5.5.260.0070.09020.97
5.5.250.0070.08020.61
5.5.240.0000.04720.19
5.4.450.0200.05319.60
5.4.440.0200.07719.43
5.4.430.0130.08319.57
5.4.420.0170.05319.59
5.4.410.0230.05719.30
5.4.400.0170.05719.11
5.4.390.0130.06018.83
5.4.380.0130.06019.11
5.4.370.0200.05319.36
5.4.360.0070.06719.25
5.4.350.0170.07718.83
5.4.340.0200.07719.36
5.4.320.0100.06319.06
5.4.310.0200.06019.25
5.4.300.0270.06719.28
5.4.290.0230.07019.15
5.4.280.0270.07019.07
5.4.270.0130.05718.82
5.4.260.0300.05319.10
5.4.250.0200.06719.00
5.4.240.0170.07319.27
5.4.230.0500.05319.28
5.4.220.0300.06719.09
5.4.210.0230.07019.09
5.4.200.0270.04318.95
5.4.190.0200.07719.22
5.4.180.0170.05719.11
5.4.170.0230.07018.92
5.4.160.0130.07719.23
5.4.150.0300.05719.13
5.4.140.0200.05316.50
5.4.130.0330.05016.57
5.4.120.0530.05016.48
5.4.110.0230.06016.64
5.4.100.0200.04716.48
5.4.90.0230.05316.66
5.4.80.0200.05316.28
5.4.70.0100.06016.68
5.4.60.0270.06716.26
5.4.50.0130.06316.57
5.4.40.0230.05316.57
5.4.30.0100.06016.36
5.4.20.0200.05016.57
5.4.10.0200.05016.43
5.4.00.0130.05015.94

preferences:
34.79 ms | 401 KiB | 5 Q