3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Vehicle { protected $name = 'YourMom'; public function getName(): string { return $this->name; } } class Truck extends Vehicle { protected $weight = 100; public function getWeight(): int { return $this->weight; } } #main wannabie :p { $truck = new Truck; if ($truck instanceof Vehicle) { echo '#idiot'; } else { echo '#youwin'; } #}

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.01118.31
8.3.50.0120.00318.03
8.3.40.0090.00618.67
8.3.30.0110.00418.55
8.3.20.0050.00320.38
8.3.10.0040.00420.45
8.3.00.0000.00823.48
8.2.180.0090.00616.75
8.2.170.0040.01122.96
8.2.160.0100.01019.34
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0040.00420.55
8.2.120.0000.00826.35
8.2.110.0120.00621.13
8.2.100.0040.00717.72
8.2.90.0000.00817.90
8.2.80.0030.00718.03
8.2.70.0060.00317.38
8.2.60.0060.00317.91
8.2.50.0000.00818.09
8.2.40.0050.00320.56
8.2.30.0040.00419.45
8.2.20.0070.00017.50
8.2.10.0050.00217.98
8.2.00.0000.00717.99
8.1.280.0090.00925.92
8.1.270.0080.00022.02
8.1.260.0000.00828.09
8.1.250.0000.00828.09
8.1.240.0040.00423.92
8.1.230.0080.00320.86
8.1.220.0080.00017.74
8.1.210.0060.00318.85
8.1.200.0030.00616.98
8.1.190.0030.00516.99
8.1.180.0030.00618.10
8.1.170.0060.00318.65
8.1.160.0040.00420.71
8.1.150.0030.00520.55
8.1.140.0040.00419.50
8.1.130.0040.00417.63
8.1.120.0000.00817.40
8.1.110.0040.00417.40
8.1.100.0040.00417.29
8.1.90.0050.00317.43
8.1.80.0000.00817.27
8.1.70.0040.00417.39
8.1.60.0050.00517.43
8.1.50.0000.00817.38
8.1.40.0000.00817.35
8.1.30.0030.00617.55
8.1.20.0040.00417.41
8.1.10.0000.00817.64
8.1.00.0040.00417.42
8.0.300.0070.00020.04
8.0.290.0040.00416.63
8.0.280.0040.00418.35
8.0.270.0000.00717.30
8.0.260.0060.00017.24
8.0.250.0070.00016.87
8.0.240.0060.00016.88
8.0.230.0000.00816.87
8.0.220.0000.00716.83
8.0.210.0000.01016.86
8.0.200.0030.00316.87
8.0.190.0070.00016.72
8.0.180.0040.00416.86
8.0.170.0000.00916.82
8.0.160.0000.00716.82
8.0.150.0030.00316.76
8.0.140.0070.00016.80
8.0.130.0030.00313.20
8.0.120.0040.00416.84
8.0.110.0060.00316.77
8.0.100.0050.00216.82
8.0.90.0000.00716.82
8.0.80.0120.00916.75
8.0.70.0040.00416.91
8.0.60.0040.00416.69
8.0.50.0040.00416.71
8.0.30.0150.00616.84
8.0.20.0140.00717.40
8.0.10.0040.00416.84
8.0.00.0090.00816.86
7.4.330.0050.00016.79
7.4.320.0030.00316.54
7.4.300.0030.00316.49
7.4.290.0070.00016.34
7.4.280.0040.00416.42
7.4.270.0000.00716.46
7.4.260.0080.00016.34
7.4.250.0040.00416.46
7.4.240.0040.00416.54
7.4.230.0000.00716.25
7.4.220.0150.00616.41
7.4.210.0090.00816.39
7.4.200.0000.00716.46
7.4.160.0090.01216.40
7.4.150.0110.00717.40
7.4.140.0100.01117.86
7.4.130.0090.01216.49
7.4.120.0100.00716.53
7.4.110.0070.01016.41
7.4.100.0030.01516.48
7.4.90.0070.01016.49
7.4.80.0060.01219.39
7.4.70.0160.00616.68
7.4.60.0060.01216.46
7.4.50.0030.01316.32
7.4.40.0070.01016.33
7.4.30.0100.00716.33
7.4.00.0160.00014.63
7.3.330.0000.00513.19
7.3.320.0050.00013.02
7.3.310.0070.00016.13
7.3.300.0060.00016.30
7.3.290.0070.00016.10
7.3.280.0040.01216.26
7.3.270.0030.01517.40
7.3.260.0040.01316.50
7.3.250.0100.01016.20
7.3.240.0060.01116.32
7.3.230.0060.01216.39
7.3.210.0190.00416.38
7.3.200.0030.01416.30
7.3.190.0060.01116.26
7.3.180.0100.00716.56
7.3.170.0060.00916.27
7.3.160.0030.01316.38
7.2.330.0120.00616.74
7.2.320.0100.00716.59
7.2.310.0070.01016.31
7.2.300.0070.01016.39
7.2.290.0040.01216.58
7.2.60.0100.00316.64
7.2.00.0060.00919.15
7.1.200.0090.00615.82
7.1.100.0060.00318.06
7.1.70.0060.00616.96
7.1.60.0060.00919.40
7.1.50.0100.01016.95
7.1.00.0070.06722.44
7.0.200.0500.00714.79
7.0.60.0230.07721.61
7.0.50.0030.08017.88
7.0.40.0030.04719.98
7.0.30.0230.04020.34
7.0.20.0270.08020.12
7.0.10.0170.06320.30
7.0.00.0100.05020.18
5.6.280.0000.06720.86
5.6.210.0030.05020.53
5.6.200.0170.07318.20
5.6.190.0070.04020.61
5.6.180.0370.07320.50
5.6.170.0370.05320.48
5.6.160.0100.06320.57
5.6.150.0130.07318.18
5.6.140.0070.05318.11
5.6.130.0030.06018.19
5.6.120.0070.03720.95
5.6.110.0070.05021.11
5.6.100.0200.05321.04
5.6.90.0070.08021.00
5.6.80.0070.08020.54
5.5.350.3370.03720.41
5.5.340.0030.04017.95
5.5.330.0070.03720.41
5.5.320.0270.05320.35
5.5.310.0270.07020.41
5.5.300.0100.05718.08
5.5.290.0000.04317.95
5.5.280.0030.04320.88
5.5.270.0170.07020.77
5.5.260.0100.07320.76
5.5.250.0000.05020.71
5.5.240.0230.07720.16

preferences:
35.98 ms | 401 KiB | 5 Q