3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $callable; public function __construct() { $this->callable = 'get_class'; } public function yesItDoes() { try { echo $this->callable->call($this); } catch (Error $e) { echo call_user_func($this->callable); } } } (new Foo)->yesItDoes();

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.0060.00916.75
8.3.50.0070.00716.46
8.3.40.0030.01018.89
8.3.30.0110.00318.78
8.3.20.0040.00420.21
8.3.10.0050.00223.57
8.3.00.0000.00823.48
8.2.180.0060.00916.50
8.2.170.0140.00322.96
8.2.160.0070.00720.35
8.2.150.0030.00524.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0100.00017.75
8.2.110.0090.00020.99
8.2.100.0080.00418.05
8.2.90.0000.00819.17
8.2.80.0030.00517.97
8.2.70.0060.00317.75
8.2.60.0040.00418.03
8.2.50.0000.00818.07
8.2.40.0080.00820.09
8.2.30.0070.00019.31
8.2.20.0030.00517.74
8.2.10.0030.00717.95
8.2.00.0000.00717.86
8.1.280.0030.01325.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.61
8.1.230.0070.00419.02
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.00817.22
8.1.180.0060.00318.10
8.1.170.0030.00518.47
8.1.160.0030.00320.75
8.1.150.0000.00818.82
8.1.140.0050.00319.55
8.1.130.0000.00717.66
8.1.120.0000.00817.34
8.1.110.0070.00017.31
8.1.100.0000.00717.35
8.1.90.0040.00417.38
8.1.80.0000.00717.39
8.1.70.0070.00017.28
8.1.60.0080.00017.52
8.1.50.0030.00617.52
8.1.40.0000.00817.53
8.1.30.0000.01217.55
8.1.20.0040.00417.53
8.1.10.0050.00217.55
8.1.00.0000.00817.43
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0040.00418.50
8.0.270.0030.00317.26
8.0.260.0030.00317.24
8.0.250.0030.00317.05
8.0.240.0030.00516.98
8.0.230.0040.00416.99
8.0.220.0000.00716.80
8.0.210.0080.00016.87
8.0.200.0030.00316.92
8.0.190.0000.00717.00
8.0.180.0060.00316.80
8.0.170.0050.00216.80
8.0.160.0000.00716.86
8.0.150.0070.00016.91
8.0.140.0040.00416.86
8.0.130.0000.00613.36
8.0.120.0100.00016.85
8.0.110.0030.00616.80
8.0.100.0070.00016.69
8.0.90.0070.00017.01
8.0.80.0040.01816.92
8.0.70.0040.00416.82
8.0.60.0030.00316.82
8.0.50.0000.00716.84
8.0.30.0140.00617.31
8.0.20.0120.00917.40
8.0.10.0000.00716.88
8.0.00.0090.00916.82
7.4.330.0000.00516.89
7.4.320.0030.00316.54
7.4.300.0040.00416.43
7.4.290.0050.00216.65
7.4.280.0050.00516.55
7.4.270.0030.00316.52
7.4.260.0000.00716.50
7.4.250.0040.00416.57
7.4.240.0020.00516.55
7.4.230.0040.00416.60
7.4.220.0200.00016.51
7.4.210.0060.01116.57
7.4.200.0030.00316.68
7.4.160.0160.00716.59
7.4.150.0150.00817.40
7.4.140.0090.00917.86
7.4.130.0130.00316.60
7.4.120.0060.01216.55
7.4.110.0140.00316.64
7.4.100.0150.00416.67
7.4.90.0130.00316.48
7.4.80.0060.01219.39
7.4.70.0090.00916.71
7.4.60.0060.00916.73
7.4.50.0040.01416.49
7.4.40.0100.00716.73
7.4.30.0060.01316.68
7.4.00.0110.00415.04
7.3.330.0000.00713.14
7.3.320.0050.00013.18
7.3.310.0070.00016.38
7.3.300.0000.00716.28
7.3.290.0030.00316.22
7.3.280.0080.00916.36
7.3.270.0130.00417.40
7.3.260.0090.01316.40
7.3.250.0140.01316.42
7.3.240.0080.00816.46
7.3.230.0080.01616.39
7.3.210.0060.01116.57
7.3.200.0140.00319.39
7.3.190.0030.01316.45
7.3.180.0070.01016.41
7.3.170.0140.00316.47
7.3.160.0060.00916.30
7.3.10.0090.00616.42
7.3.00.0070.00816.38
7.2.330.0070.01016.47
7.2.320.0150.00316.64
7.2.310.0190.00316.71
7.2.300.0100.01316.59
7.2.290.0060.01316.85
7.2.130.0100.00316.65
7.2.120.0000.01216.64
7.2.110.0090.00716.78
7.2.100.0080.00416.81
7.2.90.0070.00816.93
7.2.80.0050.00716.75
7.2.70.0110.00316.89
7.2.60.0020.01216.68
7.2.50.0050.00816.99
7.2.40.0090.00516.97
7.2.30.0050.00816.58
7.2.20.0050.00716.82
7.2.10.0070.00516.71
7.2.00.0060.00817.74
7.1.250.0080.00615.59
7.1.200.0060.00715.74
7.1.100.0110.00717.79
7.1.70.0070.00316.97
7.1.60.0160.00619.12
7.1.50.0030.00716.95
7.1.00.0000.08022.51
7.0.200.0030.00616.63
7.0.60.0300.07320.07
7.0.50.0070.05317.88
7.0.40.0030.09320.29
7.0.30.0300.04720.32
7.0.20.0070.05020.09
7.0.10.0000.08720.09
7.0.00.0000.04320.12
5.6.280.0000.06721.16
5.6.210.0200.04720.57
5.6.200.0100.08018.19
5.6.190.0000.04720.77
5.6.180.0530.07020.68
5.6.170.0230.05320.50
5.6.160.0100.05020.50
5.6.150.0100.06718.15
5.6.140.0030.07318.24
5.6.130.0070.08318.17
5.6.120.0070.08721.00
5.6.110.0070.08721.14
5.6.100.0230.05321.00
5.6.90.0100.03321.11
5.6.80.0070.07020.36
5.5.350.0270.05720.44
5.5.340.0030.08017.93
5.5.330.0030.04320.21
5.5.320.0600.06720.23
5.5.310.0170.06320.24
5.5.300.0070.08317.97
5.5.290.0100.07718.02
5.5.280.0100.07720.90
5.5.270.0070.05720.80
5.5.260.0100.08320.80
5.5.250.0100.05020.59
5.5.240.0130.03020.27

preferences:
56.99 ms | 401 KiB | 5 Q