3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { protected $id = '4'; public function getId(){return $this->id;} } $y = new class extends x { public function setId($q){$this->id = $q;} }; function debug(x $param){ var_dump($param); } debug($y); $y->setId('5'); debug($y);

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.0090.00618.43
8.3.50.0110.00418.14
8.3.40.0120.00318.68
8.3.30.0120.00318.68
8.3.20.0040.00421.86
8.3.10.0000.00721.77
8.3.00.0040.00423.48
8.2.180.0150.00016.75
8.2.170.0040.01122.96
8.2.160.0070.00720.04
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00321.04
8.2.120.0040.00426.35
8.2.110.0090.00020.52
8.2.100.0080.00417.91
8.2.90.0030.00518.16
8.2.80.0000.00817.97
8.2.70.0000.00818.04
8.2.60.0000.00817.80
8.2.50.0040.00418.10
8.2.40.0110.00418.85
8.2.30.0000.00819.22
8.2.20.0000.00918.06
8.2.10.0040.00417.95
8.2.00.0070.00019.30
8.1.280.0070.00725.92
8.1.270.0000.00722.05
8.1.260.0060.00626.35
8.1.250.0040.00428.09
8.1.240.0000.00923.60
8.1.230.0110.00020.93
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0000.00817.50
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0050.00320.25
8.1.160.0030.00518.80
8.1.150.0030.00520.75
8.1.140.0050.00217.66
8.1.130.0030.00618.95
8.1.120.0000.00717.45
8.1.110.0030.00517.40
8.1.100.0000.00717.42
8.1.90.0040.00417.45
8.1.80.0030.00617.46
8.1.70.0070.00317.34
8.1.60.0040.00417.61
8.1.50.0040.00417.42
8.1.40.0000.00717.38
8.1.30.0050.00217.66
8.1.20.0050.00517.60
8.1.10.0000.00717.48
8.1.00.0040.00417.44
8.0.300.0030.00619.81
8.0.290.0000.00716.75
8.0.280.0030.00318.48
8.0.270.0040.00417.31
8.0.260.0000.00717.16
8.0.250.0030.00316.91
8.0.240.0030.00317.02
8.0.230.0000.00717.02
8.0.220.0060.00317.00
8.0.210.0030.00316.94
8.0.200.0030.00316.85
8.0.190.0070.00016.92
8.0.180.0040.00416.95
8.0.170.0040.00416.83
8.0.160.0040.00416.98
8.0.150.0050.00216.90
8.0.140.0040.00416.81
8.0.130.0030.00313.33
8.0.120.0040.00416.80
8.0.110.0050.00216.93
8.0.100.0040.00417.05
8.0.90.0050.00217.02
8.0.80.0150.01116.94
8.0.70.0000.00716.73
8.0.60.0000.00716.80
8.0.50.0000.00816.74
8.0.30.0080.00917.16
8.0.20.0130.00717.40
8.0.10.0000.00717.09
8.0.00.0080.01216.81
7.4.330.0000.00515.55
7.4.320.0030.00316.52
7.4.300.0000.00616.64
7.4.290.0030.00316.45
7.4.280.0080.00016.59
7.4.270.0000.00716.49
7.4.260.0070.00316.47
7.4.250.0030.00316.41
7.4.240.0060.00316.58
7.4.230.0030.00316.49
7.4.220.0000.00716.46
7.4.210.0080.00916.47
7.4.200.0030.00316.43
7.4.160.0080.00816.40
7.4.140.0100.00917.86
7.4.130.0110.00716.52
7.4.120.0100.00916.47
7.4.110.0110.00816.32
7.4.100.0140.00416.54
7.4.90.0100.00716.45
7.4.80.0170.00519.39
7.4.70.0060.01116.59
7.4.60.0120.00416.48
7.4.50.0090.00616.54
7.4.40.0130.00916.49
7.4.10.0060.01214.70
7.4.00.0100.00815.08
7.3.330.0020.00213.26
7.3.320.0000.00613.27
7.3.310.0060.00016.18
7.3.300.0030.00316.31
7.3.290.0000.00816.26
7.3.280.0080.01116.30
7.3.260.0090.00916.38
7.3.240.0080.01016.33
7.3.230.0160.00016.47
7.3.210.0130.00316.30
7.3.200.0040.01316.30
7.3.190.0070.01016.33
7.3.180.0030.01316.50
7.3.170.0140.01016.51
7.3.160.0000.01616.54
7.3.130.0040.01114.91
7.3.120.0110.00814.82
7.3.110.0080.01014.76
7.3.100.0060.00914.79
7.3.90.0040.00814.59
7.3.80.0020.01514.72
7.3.70.0040.00714.88
7.3.60.0070.00414.85
7.3.50.0070.00614.72
7.3.40.0080.00814.79
7.3.30.0020.01114.69
7.3.20.0090.00516.75
7.3.10.0100.00516.68
7.3.00.0020.00916.56
7.2.330.0160.00316.76
7.2.320.0100.00816.36
7.2.310.0070.01016.65
7.2.300.0130.00416.31
7.2.290.0120.00816.66
7.2.260.0070.01115.08
7.2.250.0080.01014.75
7.2.240.0100.00615.09
7.2.230.0060.01014.91
7.2.220.0100.00714.97
7.2.210.0070.00714.93
7.2.200.0070.01015.15
7.2.190.0070.01015.00
7.2.180.0020.01315.07
7.2.170.0080.00614.71
7.2.160.0060.00315.12
7.2.150.0110.00716.93
7.2.140.0060.00916.79
7.2.130.0160.00316.59
7.2.120.0040.01116.68
7.2.110.0070.00316.63
7.2.100.0060.00616.64
7.2.90.0090.00916.59
7.2.80.0000.01216.57
7.2.70.0060.00916.64
7.2.60.0090.00516.82
7.2.50.0060.00616.89
7.2.40.0400.01217.33
7.2.30.0350.01017.41
7.2.20.0460.01017.40
7.2.10.0250.01017.44
7.2.00.0290.00617.24
7.1.330.0090.00415.92
7.1.320.0060.01015.75
7.1.310.0050.00915.55
7.1.300.0050.00915.62
7.1.290.0030.01115.78
7.1.280.0080.00415.63
7.1.270.0090.00515.81
7.1.260.0050.00415.67
7.1.250.0030.01315.55
7.1.240.0060.00915.48
7.1.230.0030.01015.30
7.1.220.0060.00615.57
7.1.210.0060.00915.80
7.1.200.0050.00815.69
7.1.190.0060.00615.52
7.1.180.0040.01115.45
7.1.170.0070.00715.85
7.1.160.0330.00916.13
7.1.150.0290.00816.13
7.1.140.0470.00616.25
7.1.130.0190.01216.11
7.1.120.0320.00516.34
7.1.110.0360.00516.15
7.1.100.0380.01115.85
7.1.90.0210.00815.81
7.1.80.0260.00715.88
7.1.70.0200.01115.42
7.1.60.0300.00824.43
7.1.50.0480.01024.45
7.1.40.0810.01124.20
7.1.30.0480.01124.19
7.1.20.0330.01224.21
7.1.10.0230.00415.15
7.1.00.0310.01215.25
7.0.330.0130.00315.32
7.0.320.0030.00714.99
7.0.310.0100.00315.38
7.0.300.0080.00415.37
7.0.290.0030.00615.15
7.0.280.0130.00015.02
7.0.270.0120.00015.31
7.0.260.0080.00015.49
7.0.250.0070.01015.05
7.0.240.0060.00915.43
7.0.230.0070.01015.01
7.0.220.0000.01215.30
7.0.210.0080.00615.25
7.0.200.0070.00715.39
7.0.190.0070.00715.34
7.0.180.0110.00315.27
7.0.170.0040.01115.28
7.0.160.0070.00715.43
7.0.150.0070.00415.47
7.0.140.0060.00314.77
7.0.130.0100.00015.46
7.0.120.0110.00415.44
7.0.110.0090.00415.45
7.0.100.0030.00615.45
7.0.90.0070.00315.21
7.0.80.0040.01215.25
7.0.70.0110.00415.23
7.0.60.0000.00915.39
7.0.50.0080.00415.49
7.0.40.0060.00313.17
7.0.30.0070.00713.25
7.0.20.0080.00013.24
7.0.10.0100.00313.37
7.0.00.0070.00713.42
5.6.400.0080.00314.04
5.6.390.0100.00614.07
5.6.380.0150.00014.18
5.6.370.0040.00413.91
5.6.360.0030.00713.70
5.6.350.0000.01414.15
5.6.340.0070.00314.01
5.6.330.0100.00614.21
5.6.320.0030.01014.23
5.6.310.0100.00314.27
5.6.300.0030.00613.95
5.6.290.0030.01014.25
5.6.280.0070.00713.87
5.6.270.0050.00513.93
5.6.260.0070.00713.76
5.6.250.0030.00713.97
5.6.240.0070.00714.06
5.6.230.0070.00714.11
5.6.220.0100.00313.95
5.6.210.0070.00414.07
5.6.200.0030.01014.17
5.6.190.0040.00414.20
5.6.180.0090.00914.07
5.6.170.0070.01014.32
5.6.160.0040.01413.98
5.6.150.0100.00314.08
5.6.140.0000.01314.19
5.6.130.0040.00713.95
5.6.120.0030.01313.90
5.6.110.0000.01713.93
5.6.100.0030.01413.85
5.6.90.0060.01014.24
5.6.80.0060.00613.80
5.6.70.0060.00614.14
5.6.60.0000.01314.24
5.6.50.0030.01013.96
5.6.40.0030.01313.84
5.6.30.0140.00013.93
5.6.20.0030.01214.03
5.6.10.0000.01413.89
5.6.00.0030.00613.76

preferences:
56.9 ms | 401 KiB | 5 Q