3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected $thing; public function __construct($thing) { $this->thing = $thing; } public static function create() { return new static('foo'); } } class B extends A { protected $another; public function getAnother() { return $this->another; } public static function create() { $instance = parent::create(); $instance->another = 'bar'; return $instance; } } var_dump(B::create()->getAnother());

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.0120.00318.20
8.3.50.0100.00716.47
8.3.40.0120.00318.55
8.3.30.0180.00418.75
8.3.20.0040.00421.64
8.3.10.0070.00023.52
8.3.00.0040.00421.82
8.2.180.0070.00725.92
8.2.170.0090.00622.96
8.2.160.0100.00322.96
8.2.150.0030.00625.66
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00019.36
8.2.110.0060.00321.13
8.2.100.0120.00017.84
8.2.90.0050.00318.89
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0060.00617.80
8.2.50.0000.00918.07
8.2.40.0120.00017.97
8.2.30.0040.00418.09
8.2.20.0070.00017.87
8.2.10.0020.00520.57
8.2.00.0080.00019.51
8.1.280.0140.00325.92
8.1.270.0040.00423.99
8.1.260.0090.00026.35
8.1.250.0060.00328.09
8.1.240.0070.00419.00
8.1.230.0070.00417.89
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0070.00317.35
8.1.190.0090.00017.00
8.1.180.0030.00618.10
8.1.170.0050.00318.52
8.1.160.0040.00418.82
8.1.150.0050.00318.89
8.1.140.0030.00523.84
8.1.130.0000.00817.43
8.1.120.0070.00317.41
8.1.110.0020.00517.44
8.1.100.0030.00517.36
8.1.90.0000.00817.30
8.1.80.0000.00817.46
8.1.70.0000.00717.36
8.1.60.0000.00817.59
8.1.50.0060.00317.49
8.1.40.0020.00517.45
8.1.30.0080.00017.71
8.1.20.0040.00417.62
8.1.10.0030.00617.41
8.1.00.0040.00417.49
8.0.300.0000.00718.77
8.0.290.0040.00416.58
8.0.280.0070.00018.30
8.0.270.0070.00017.27
8.0.260.0030.00316.75
8.0.250.0030.00316.89
8.0.240.0000.00716.93
8.0.230.0030.00416.83
8.0.220.0000.00716.85
8.0.210.0040.00416.83
8.0.200.0000.00916.79
8.0.190.0070.00016.89
8.0.180.0000.00816.82
8.0.170.0080.00016.88
8.0.160.0040.00416.81
8.0.150.0040.00416.70
8.0.140.0000.00816.78
8.0.130.0060.00013.24
8.0.120.0080.00016.71
8.0.110.0000.00816.81
8.0.100.0070.00016.87
8.0.90.0050.00216.71
8.0.80.0080.00716.85
8.0.70.0030.00616.72
8.0.60.0000.00716.83
8.0.50.0000.00716.94
8.0.30.0110.00817.22
8.0.20.0130.00517.40
8.0.10.0000.00816.83
8.0.00.0100.00716.63
7.4.330.0030.00316.70
7.4.320.0000.00616.56
7.4.300.0050.00316.51
7.4.290.0080.00016.41
7.4.280.0030.00516.52
7.4.270.0040.00416.60
7.4.260.0030.00316.46
7.4.250.0030.00316.48
7.4.240.0030.00316.42
7.4.230.0000.00716.63
7.4.220.0000.00716.48
7.4.210.0090.00616.68
7.4.200.0030.00316.63
7.4.160.0080.00716.46
7.4.140.0130.00617.86
7.4.130.0030.01416.48
7.4.120.0000.01616.43
7.4.110.0110.00616.48
7.4.100.0110.00716.47
7.4.90.0090.00916.38
7.4.80.0200.00917.93
7.4.70.0170.00916.56
7.4.60.0170.01016.43
7.4.50.0190.00516.40
7.4.40.0150.00816.50
7.4.30.0160.01316.51
7.4.20.0330.00016.26
7.4.10.0220.01116.48
7.4.00.0100.00815.39
7.3.330.0000.00513.08
7.3.320.0030.00313.29
7.3.310.0000.00716.33
7.3.300.0030.00316.34
7.3.290.0000.00616.25
7.3.280.0070.01016.30
7.3.260.0090.00916.38
7.3.240.0090.00916.33
7.3.230.0130.00616.33
7.3.210.0060.00916.27
7.3.200.0130.01416.35
7.3.190.0190.00916.49
7.3.180.0190.00516.42
7.3.170.0150.01116.23
7.3.160.0170.00716.27
7.3.150.0250.01116.45
7.3.140.0250.00916.37
7.3.130.0280.00616.43
7.3.120.0140.01115.52
7.3.110.0150.01315.55
7.3.100.0200.00315.54
7.3.90.0160.00615.20
7.3.80.0130.00715.33
7.3.70.0130.01015.19
7.3.60.0130.00715.25
7.3.50.0120.00715.03
7.3.40.0100.00915.06
7.3.30.0070.01115.05
7.3.20.0160.00715.34
7.3.10.0130.00715.56
7.3.00.0670.00815.43
7.2.330.0120.01216.60
7.2.320.0310.00016.68
7.2.310.0150.01016.65
7.2.300.0170.00716.62
7.2.290.0150.01216.57
7.2.280.0220.00916.65
7.2.270.0240.01416.59
7.2.260.0230.01016.53
7.2.250.0150.00915.96
7.2.240.0120.01315.60
7.2.230.0170.01015.46
7.2.220.0120.00715.68
7.2.210.0130.00715.32
7.2.200.0140.00715.49
7.2.190.0130.00915.61
7.2.180.0100.01115.28
7.2.170.0140.00715.24
7.2.160.0130.00815.21
7.2.150.0230.00815.42
7.2.140.0180.00615.48
7.2.130.0500.00815.51
7.2.120.0680.00815.48
7.2.110.0710.00715.49
7.2.100.0530.00815.43
7.2.90.0550.00715.33
7.2.80.0760.00815.42
7.2.70.0840.00715.53
7.2.60.0730.00515.39
7.2.50.0690.00815.34
7.2.40.0610.00515.42
7.2.30.0690.01215.48
7.2.20.0530.00815.35
7.2.10.1010.00615.53
7.2.00.0710.00815.43
7.1.330.0150.00715.55
7.1.320.0140.00715.12
7.1.310.0070.01015.01
7.1.300.0120.01115.04
7.1.290.0110.00914.88
7.1.280.0150.00814.53
7.1.270.0140.00714.51
7.1.260.0170.00814.51
7.1.250.0490.00714.44
7.1.240.0140.01815.48
7.1.230.0190.01015.60
7.1.220.0220.01315.64
7.1.210.0190.01015.57
7.1.200.0200.00815.35
7.1.190.0250.00515.50
7.1.180.0300.00015.46
7.1.170.0220.00615.54
7.1.160.0240.00415.58
7.1.150.0280.00415.57
7.1.140.0240.00615.46
7.1.130.0190.01015.54
7.1.120.0190.01315.55
7.1.110.0280.00415.57
7.1.100.0200.01015.58
7.1.90.0430.00815.36
7.1.80.0140.02315.62
7.1.70.0290.00615.46
7.1.60.0310.00915.45
7.1.50.0210.01815.69
7.1.40.0340.01415.64
7.1.30.0240.01215.56
7.1.20.0290.00815.48
7.1.10.0290.01215.37
7.1.00.0110.02815.45
7.0.330.0640.00913.88
7.0.320.0200.00715.41
7.0.310.0190.00815.27
7.0.300.0260.01015.35
7.0.290.0250.00615.10
7.0.280.0270.00415.21
7.0.270.0190.01015.29
7.0.260.0240.00715.43
7.0.250.0280.00315.28
7.0.240.0230.00615.31
7.0.230.0280.01315.19
7.0.220.0240.01315.27
7.0.210.0200.00915.18
7.0.200.0170.02015.22
7.0.190.0240.00715.22
7.0.180.0230.01315.31
7.0.170.0260.01015.26
7.0.160.0230.01215.42
7.0.150.0270.00915.25
7.0.140.0210.01015.28
7.0.130.0280.00915.25
7.0.120.0480.00615.09
7.0.110.0190.01415.31
7.0.100.0340.00515.09
7.0.90.0240.00815.29
7.0.80.0270.00915.18
7.0.70.0170.01415.39
7.0.60.0140.01715.24
7.0.50.0290.00315.29
7.0.40.0230.00615.33
7.0.30.0230.00615.14
7.0.20.0260.00815.14
7.0.10.0150.01115.25
7.0.00.0150.01515.18
5.6.400.0130.00914.78
5.6.390.0150.00614.71
5.6.380.0100.01014.65
5.6.370.0200.00915.77
5.6.360.0140.01816.16
5.6.350.0210.01415.97
5.6.340.0220.01115.73
5.6.330.0250.01015.95
5.6.320.0220.01115.86
5.6.310.0280.00915.72
5.6.300.0240.01215.97
5.6.290.0170.01716.07
5.6.280.0300.00615.96
5.6.270.0220.01615.85
5.6.260.0320.00316.20
5.6.250.0200.01816.06
5.6.240.0250.01015.98
5.6.230.0240.00915.96
5.6.220.0200.01416.09
5.6.210.0230.01015.80
5.6.200.0160.01616.30
5.6.190.0260.00615.93
5.6.180.0180.01216.16
5.6.170.0270.00316.26
5.6.160.0280.00516.03
5.6.150.0210.01116.05
5.6.140.0160.01615.86
5.6.130.0240.00616.09
5.6.120.0240.00715.73
5.6.110.0170.01215.90
5.6.100.0220.00915.83
5.6.90.0240.00516.17
5.6.80.0190.01215.77
5.6.70.0180.01015.93
5.6.60.0200.01015.79
5.6.50.0210.00915.79
5.6.40.0160.01315.82
5.6.30.0170.01315.89
5.6.20.0070.01215.88
5.6.10.0100.01315.83
5.6.00.0110.01515.91

preferences:
55.75 ms | 401 KiB | 5 Q