3v4l.org

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

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.68
8.3.50.0110.00519.02
8.3.40.0110.00318.70
8.3.30.0160.00318.72
8.3.20.0070.00020.73
8.3.10.0000.00823.70
8.3.00.0080.00020.64
8.2.180.0180.00316.32
8.2.170.0100.00722.96
8.2.160.0100.00320.25
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0030.00619.56
8.2.120.0000.00726.35
8.2.110.0060.00322.08
8.2.100.0050.00717.72
8.2.90.0040.00417.50
8.2.80.0030.00617.97
8.2.70.0080.00018.05
8.2.60.0080.00018.22
8.2.50.0050.00318.10
8.2.40.0000.00819.28
8.2.30.0030.00320.49
8.2.20.0050.00217.94
8.2.10.0100.00019.15
8.2.00.0060.00317.92
8.1.280.0070.00725.92
8.1.270.0070.00022.07
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0030.00623.82
8.1.230.0070.00319.10
8.1.220.0000.00917.79
8.1.210.0040.00418.77
8.1.200.0050.00517.23
8.1.190.0040.00417.25
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0050.00218.89
8.1.150.0040.00418.83
8.1.140.0040.00418.92
8.1.130.0000.00720.30
8.1.120.0060.00317.40
8.1.110.0030.00517.29
8.1.100.0040.00417.39
8.1.90.0060.00317.41
8.1.80.0040.00617.27
8.1.70.0000.00717.43
8.1.60.0070.00017.60
8.1.50.0020.00517.40
8.1.40.0040.00417.54
8.1.30.0060.00317.65
8.1.20.0040.00417.70
8.1.10.0030.00617.52
8.1.00.0060.00617.42
8.0.300.0000.00819.73
8.0.290.0040.00416.63
8.0.280.0080.00018.51
8.0.270.0000.00717.30
8.0.260.0000.00618.51
8.0.250.0030.00316.92
8.0.240.0040.00416.98
8.0.230.0000.00716.96
8.0.220.0030.00316.85
8.0.210.0070.00016.72
8.0.200.0030.00316.93
8.0.190.0040.00416.80
8.0.180.0030.00516.84
8.0.170.0000.00916.86
8.0.160.0070.00016.83
8.0.150.0000.00716.66
8.0.140.0040.00416.82
8.0.130.0030.00313.17
8.0.120.0050.00316.80
8.0.110.0030.00316.62
8.0.100.0000.00716.94
8.0.90.0000.00716.79
8.0.80.0080.01116.79
8.0.70.0050.00216.66
8.0.60.0040.00416.79
8.0.50.0070.00016.70
8.0.30.0120.00616.94
8.0.20.0120.00917.20
8.0.10.0040.00416.82
8.0.00.0150.00716.65
7.4.330.0030.00315.55
7.4.320.0030.00316.38
7.4.300.0070.00016.63
7.4.290.0040.00416.48
7.4.280.0060.00316.50
7.4.270.0030.00316.59
7.4.260.0000.00716.59
7.4.250.0030.00316.59
7.4.240.0030.00316.48
7.4.230.0030.00316.40
7.4.220.0080.00016.44
7.4.210.0100.00716.65
7.4.200.0030.00316.72
7.4.160.0070.01016.54
7.4.130.0110.00716.52
7.4.120.0100.01216.62
7.4.110.0210.00616.40
7.4.100.0190.00316.50
7.4.90.0100.01016.49
7.4.80.0190.00319.39
7.4.70.0170.00016.54
7.4.60.0040.01416.64
7.4.50.0000.01616.40
7.4.40.0030.01516.64
7.4.00.0070.00714.80
7.3.330.0000.00513.35
7.3.320.0030.00313.41
7.3.310.0050.00216.39
7.3.300.0030.00316.36
7.3.290.0120.00316.42
7.3.280.0120.00516.32
7.3.260.0110.00916.49
7.3.240.0090.01016.45
7.3.230.0070.01016.66
7.3.210.0100.00616.36
7.3.200.0160.00316.34
7.3.190.0110.00616.34
7.3.180.0100.00616.63
7.3.170.0120.00416.30
7.3.160.0090.00616.63
7.3.120.0030.01014.80
7.3.110.0100.00615.18
7.3.100.0060.00314.81
7.3.90.0000.01414.80
7.3.80.0060.00614.77
7.3.70.0080.00714.85
7.3.60.0070.00714.74
7.3.50.0000.00914.74
7.3.40.0060.00714.75
7.3.30.0050.01114.93
7.3.20.0080.01016.47
7.3.10.0090.00816.66
7.3.00.0050.00616.70
7.2.330.0170.00016.84
7.2.320.0110.01116.75
7.2.310.0090.00716.53
7.2.300.0100.00716.65
7.2.290.0140.00316.74
7.2.240.0090.00615.04
7.2.230.0120.00315.06
7.2.220.0030.00714.91
7.2.210.0000.01614.80
7.2.200.0040.00815.25
7.2.190.0060.00614.79
7.2.180.0090.00614.81
7.2.170.0050.00814.96
7.2.160.0070.01114.97
7.2.150.0040.01416.73
7.2.140.0070.00816.80
7.2.130.0100.00816.91
7.2.120.0140.00516.82
7.2.110.0050.00916.99
7.2.100.0080.00616.84
7.2.90.0070.00516.89
7.2.80.0090.00516.91
7.2.70.0110.00416.97
7.2.60.0030.00916.85
7.2.50.0050.00916.84
7.2.40.0110.00816.83
7.2.30.0130.00416.82
7.2.20.0080.00717.01
7.2.10.0100.01016.81
7.2.00.0060.00816.85
7.1.330.0070.00415.80
7.1.320.0070.00715.75
7.1.310.0060.00615.78
7.1.300.0030.01015.78
7.1.290.0120.00215.52
7.1.280.0040.00815.71
7.1.270.0030.01015.79
7.1.260.0070.00715.52
7.1.250.0070.01115.51

preferences:
63.86 ms | 401 KiB | 5 Q