3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Unicorn{ public function approve(){} public function reject(){ echo 'reject method called'; } } class Brexit { protected $deal; public function __construct() { $this->deal = new Unicorn(); } } class Disaster extends Brexit { public function __construct() { parent::__construct(); $this->deal->reject(); } } new Disaster();

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.0160.00318.56
8.3.50.0090.01018.46
8.3.40.0070.00718.63
8.3.30.0200.00018.80
8.3.20.0070.00020.78
8.3.10.0050.00323.71
8.3.00.0070.00020.54
8.2.180.0040.01116.32
8.2.170.0070.01422.96
8.2.160.0150.00020.52
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0030.00718.09
8.2.120.0070.00026.35
8.2.110.0090.00021.18
8.2.100.0080.00417.72
8.2.90.0000.00817.63
8.2.80.0040.00417.97
8.2.70.0060.00318.05
8.2.60.0000.00818.22
8.2.50.0040.00418.10
8.2.40.0060.00319.24
8.2.30.0030.00320.61
8.2.20.0080.00018.09
8.2.10.0040.00421.02
8.2.00.0020.00517.97
8.1.280.0120.00325.92
8.1.270.0050.00222.09
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0060.00322.65
8.1.230.0060.00619.01
8.1.220.0060.00317.74
8.1.210.0000.00918.77
8.1.200.0080.00017.23
8.1.190.0050.00317.22
8.1.180.0030.00518.10
8.1.170.0040.00418.62
8.1.160.0000.00718.67
8.1.150.0070.00018.66
8.1.140.0040.00418.90
8.1.130.0030.00320.24
8.1.120.0000.00917.34
8.1.110.0040.00417.40
8.1.100.0030.00517.34
8.1.90.0000.00817.36
8.1.80.0030.00617.45
8.1.70.0000.00717.40
8.1.60.0030.00517.47
8.1.50.0000.00817.48
8.1.40.0040.00417.54
8.1.30.0070.00317.47
8.1.20.0080.00017.64
8.1.10.0000.00817.46
8.1.00.0110.00017.46
8.0.300.0000.00821.50
8.0.290.0060.00316.63
8.0.280.0040.00418.33
8.0.270.0030.00317.31
8.0.260.0030.00318.44
8.0.250.0000.00616.77
8.0.240.0040.00416.88
8.0.230.0070.00016.82
8.0.220.0030.00316.75
8.0.210.0000.00716.83
8.0.200.0030.00316.84
8.0.190.0060.00316.86
8.0.180.0070.00016.85
8.0.170.0030.00516.80
8.0.160.0000.00816.75
8.0.150.0000.00816.71
8.0.140.0040.00416.63
8.0.130.0030.00313.13
8.0.120.0000.00816.82
8.0.110.0050.00216.73
8.0.100.0000.00816.64
8.0.90.0000.00716.89
8.0.80.0040.01216.89
8.0.70.0080.00016.88
8.0.60.0040.00416.93
8.0.50.0030.00516.82
8.0.30.0120.00917.34
8.0.20.0150.01216.93
8.0.10.0000.00716.93
8.0.00.0120.01016.84
7.4.330.0050.00016.69
7.4.320.0000.00616.38
7.4.300.0030.00316.54
7.4.290.0000.00716.43
7.4.280.0040.00416.43
7.4.270.0030.00316.36
7.4.260.0040.00316.41
7.4.250.0030.00316.46
7.4.240.0050.00216.35
7.4.230.0030.00316.27
7.4.220.0000.00716.28
7.4.210.0090.00816.50
7.4.200.0050.00216.57
7.4.160.0060.01016.47
7.4.140.0100.01017.86
7.4.130.0090.01416.71
7.4.120.0140.00516.44
7.4.110.0090.01216.50
7.4.100.0080.00816.38
7.4.90.0130.00316.41
7.4.80.0110.00919.39
7.4.70.0090.01116.39
7.4.60.0030.01316.36
7.4.50.0070.01016.41
7.4.40.0090.00916.24
7.4.10.0100.00314.66
7.4.00.0030.01514.98
7.3.330.0020.00213.32
7.3.320.0030.00213.30
7.3.310.0000.00716.32
7.3.300.0030.00316.30
7.3.290.0040.00416.34
7.3.280.0090.00816.26
7.3.260.0140.00516.37
7.3.240.0130.00516.42
7.3.230.0100.00716.48
7.3.210.0070.01016.32
7.3.200.0090.00616.58
7.3.190.0140.00716.53
7.3.180.0090.00616.44
7.3.170.0030.01316.30
7.3.160.0080.00816.31
7.3.130.0060.01314.87
7.3.120.0000.01814.63
7.3.110.0070.01014.73
7.3.100.0030.01014.67
7.3.90.0100.00014.66
7.3.80.0030.01314.73
7.3.70.0030.01214.78
7.3.60.0060.00614.54
7.3.50.0100.00314.84
7.3.40.0110.00514.72
7.3.30.0060.00614.72
7.3.20.0110.00716.35
7.3.10.0060.00916.48
7.3.00.0090.00616.70
7.2.330.0060.02116.54
7.2.320.0060.01816.62
7.2.310.0070.01016.78
7.2.300.0140.00316.59
7.2.290.0090.00916.63
7.2.260.0090.00914.93
7.2.250.0110.00714.54
7.2.240.0030.01415.04
7.2.230.0070.00714.66
7.2.220.0070.00714.62
7.2.210.0000.01514.85
7.2.200.0070.00715.06
7.2.190.0110.00415.02
7.2.180.0080.00415.06
7.2.170.0100.00614.57
7.2.160.0050.00714.84
7.2.150.0110.00816.74
7.2.140.0060.00516.81
7.2.130.0060.00816.95
7.2.120.0080.00516.77
7.2.110.0050.01116.88
7.2.100.0100.00816.82
7.2.90.0050.01116.93
7.2.80.0040.01016.82
7.2.70.0050.00916.88
7.2.60.0030.01016.62
7.2.50.0130.00516.73
7.2.40.0120.00516.92
7.2.30.0080.00816.76
7.2.20.0090.00316.78
7.2.10.0080.01016.76
7.2.00.0110.00716.90
7.1.330.0070.01015.60
7.1.320.0100.00015.45
7.1.310.0070.00715.65
7.1.300.0140.00015.62
7.1.290.0090.00615.77
7.1.280.0040.00915.51
7.1.270.0060.00615.61
7.1.260.0050.01115.37
7.1.250.0040.00715.49
7.1.240.0000.01415.58
7.1.230.0000.01615.29
7.1.220.0080.00815.66
7.1.210.0000.01315.70
7.1.200.0070.00715.74
7.1.190.0000.01315.41
7.1.180.0000.01415.67
7.1.170.0070.01015.74
7.1.160.0080.00815.65
7.1.150.0150.00315.71
7.1.140.0030.01215.76
7.1.130.0070.00715.62
7.1.120.0060.01015.80
7.1.110.0030.01015.54
7.1.100.0060.01215.34
7.1.90.0000.01815.79
7.1.80.0060.00915.81
7.1.70.0040.00815.53
7.1.60.0070.01015.70
7.1.50.0100.00715.71
7.1.40.0080.00615.52
7.1.30.0110.00415.79
7.1.20.0040.00415.45
7.1.10.0040.01115.50
7.1.00.0040.01115.47

preferences:
60.68 ms | 401 KiB | 5 Q