3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class AbstractShipment { protected $id = null; protected $type = null; public function getPackageNumbersForm(int $id, string $type, string $errors, float $leftToPayAmount) { //return $this->packageNumber->getPackageNumbersForm( var_dump(array( $id, $type, $errors, $leftToPayAmount )); } } abstract class AbstractSpecificShipment extends AbstractShipment { public function getPackageNumbersForm(string $errors = '', $leftToPayAmount = 0) { return parent::getPackageNumbersForm($this->id, $this->type, $errors, $leftToPayAmount); } } class OrderShipment extends AbstractSpecificShipment { public function __construct(int $orderId) { $this->id = $orderId; $this->type = 'order'; } } $shipment = new OrderShipment((int)1); $shipment->getPackageNumbersForm('error', 100);

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.0110.00716.74
8.3.60.0070.01416.63
8.3.50.0140.00018.27
8.3.40.0160.00618.70
8.3.30.0070.00718.96
8.3.20.0060.00324.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.190.0090.00616.58
8.2.180.0070.00725.92
8.2.170.0040.01122.96
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0040.00426.35
8.2.110.0110.01122.14
8.2.100.0090.00317.66
8.2.90.0050.00317.63
8.2.80.0080.00018.62
8.2.70.0060.00317.50
8.2.60.0000.00817.50
8.2.50.0040.00718.05
8.2.40.0000.00919.70
8.2.30.0060.00318.01
8.2.20.0000.00717.94
8.2.10.0030.00519.06
8.2.00.0080.00019.06
8.1.280.0150.00425.92
8.1.270.0040.00423.99
8.1.260.0000.00828.09
8.1.250.0050.00328.09
8.1.240.0070.00323.91
8.1.230.0110.00021.03
8.1.220.0030.00518.46
8.1.210.0060.00318.77
8.1.200.0090.00017.51
8.1.190.0030.00517.10
8.1.180.0040.00418.10
8.1.170.0040.00419.04
8.1.160.0040.00418.77
8.1.150.0030.00518.68
8.1.140.0070.00018.79
8.1.130.0070.00020.13
8.1.120.0040.00417.37
8.1.110.0000.00817.27
8.1.100.0050.00317.37
8.1.90.0040.00417.22
8.1.80.0090.00017.33
8.1.70.0030.00317.34
8.1.60.0050.00317.37
8.1.50.0040.00417.46
8.1.40.0000.00717.37
8.1.30.0000.00717.43
8.1.20.0000.00717.43
8.1.10.0000.00717.26
8.1.00.0040.00417.30
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0000.00718.30
8.0.270.0030.00317.96
8.0.260.0070.00019.98
8.0.250.0000.00716.94
8.0.240.0040.00416.86
8.0.230.0040.00416.89
8.0.220.0060.00016.83
8.0.210.0000.00716.80
8.0.200.0030.00316.88
8.0.190.0070.00016.86
8.0.180.0000.00816.86
8.0.170.0000.00916.81
8.0.160.0000.00716.80
8.0.150.0050.00516.82
8.0.140.0060.00316.78
8.0.130.0000.00613.22
8.0.120.0070.00016.83
8.0.110.0020.00516.70
8.0.100.0030.00616.71
8.0.90.0000.00816.70
8.0.80.0100.00516.81
8.0.70.0000.00816.72
8.0.60.0000.00716.70
8.0.50.0040.00416.77
8.0.30.0090.00917.07
8.0.20.0070.01416.99
8.0.10.0070.00016.89
8.0.00.0110.01016.66
7.4.330.0030.00315.55
7.4.320.0070.00016.65
7.4.300.0030.00316.58
7.4.290.0000.00716.50
7.4.280.0070.00016.55
7.4.270.0030.00316.44
7.4.260.0050.00013.18
7.4.250.0030.00516.49
7.4.240.0020.00516.49
7.4.230.0000.00716.55
7.4.220.0030.00316.61
7.4.210.0120.00616.45
7.4.200.0000.00716.62
7.4.130.0100.01116.54
7.4.120.0170.01016.60
7.4.110.0080.00916.57
7.4.100.0170.00616.47
7.4.90.0130.00316.51
7.4.80.0160.01019.39
7.4.70.0070.01016.77
7.4.60.0040.01416.56
7.4.50.0080.00816.46
7.4.40.0080.00916.25
7.4.30.0040.01416.33
7.4.20.0120.00616.26
7.4.10.0060.01316.45
7.4.00.0120.00616.64
7.3.330.0050.00216.40
7.3.320.0000.00513.35
7.3.310.0000.00716.29
7.3.300.0040.00416.23
7.3.290.0110.00416.34
7.3.280.0090.00616.29
7.3.260.0060.01216.48
7.3.240.0130.00616.47
7.3.230.0080.00816.35
7.3.210.0080.01016.38
7.3.200.0110.00616.42
7.3.190.0150.00616.60
7.3.180.0090.00616.47
7.3.170.0070.01016.20
7.3.160.0180.00016.47
7.3.150.0070.01016.34
7.3.140.0110.00716.56
7.3.130.0070.01316.27
7.3.120.0170.00316.50
7.3.110.0090.00616.32
7.3.100.0150.00016.07
7.3.90.0110.00716.38
7.3.80.0060.01416.44
7.3.70.0100.00716.48
7.3.60.0030.01316.31
7.3.50.0090.00916.38
7.3.40.0070.01416.17
7.3.30.0060.01116.45
7.3.20.0090.00916.16
7.3.10.0150.00416.37
7.3.00.0060.01816.36
7.2.330.0140.00316.82
7.2.320.0100.01316.89
7.2.310.0000.02016.77
7.2.300.0070.01016.50
7.2.290.0030.01716.76
7.2.280.0000.01716.56
7.2.270.0160.00616.40
7.2.260.0090.00916.50
7.2.250.0110.00816.30
7.2.240.0080.00816.40
7.2.230.0060.01016.32
7.2.220.0190.00016.19
7.2.210.0070.01416.35
7.2.200.0060.01016.60
7.2.190.0070.01016.31
7.2.180.0220.00016.30
7.2.170.0080.01116.41
7.2.160.0120.00616.45
7.2.150.0090.01216.46
7.2.140.0120.01216.62
7.2.130.0120.01216.20
7.2.120.0100.00716.71
7.2.110.0070.01116.67
7.2.100.0110.00716.42
7.2.90.0090.00916.46
7.2.80.0120.00616.39
7.2.70.0120.01216.43
7.2.60.0170.00716.64
7.2.50.0030.01516.67
7.2.40.0140.00316.66
7.2.30.0120.00616.39
7.2.20.0090.00916.71
7.2.10.0060.01216.79
7.2.00.0060.01216.57

preferences:
21.4 ms | 401 KiB | 5 Q