3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $stage; public function __construct($stage) { $this->stage = $stage; } public function __toString() { return $this->stage.''; } } $array['test'] = function ($i) {return new Test($i);}; echo $array['test']('2'); echo $array['test'];

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.01616.88
8.3.50.0070.00716.51
8.3.40.0040.01118.72
8.3.30.0110.00418.89
8.3.20.0020.00520.21
8.3.10.0040.00421.76
8.3.00.0040.00417.72
8.2.180.0120.00318.30
8.2.170.0170.00322.96
8.2.160.0070.00720.10
8.2.150.0040.00424.18
8.2.140.0150.00324.66
8.2.130.0080.00022.21
8.2.120.0000.00826.35
8.2.110.0060.00320.48
8.2.100.0040.00718.03
8.2.90.0000.00819.22
8.2.80.0080.00018.16
8.2.70.0070.00317.75
8.2.60.0040.00417.88
8.2.50.0080.00018.10
8.2.40.0040.00420.42
8.2.30.0040.00421.18
8.2.20.0040.00418.00
8.2.10.0000.00718.00
8.2.00.0040.00418.19
8.1.280.0120.00325.92
8.1.270.0000.00722.05
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0080.00023.97
8.1.230.0070.00417.71
8.1.220.0030.00617.79
8.1.210.0000.00818.77
8.1.200.0100.00017.23
8.1.190.0030.00517.35
8.1.180.0050.00318.10
8.1.170.0040.00418.57
8.1.160.0040.00418.92
8.1.150.0030.00620.48
8.1.140.0050.00319.46
8.1.130.0000.00718.80
8.1.120.0030.00317.38
8.1.110.0070.00017.30
8.1.100.0040.00417.43
8.1.90.0030.00517.32
8.1.80.0040.00317.36
8.1.70.0000.00717.32
8.1.60.0000.01117.60
8.1.50.0050.00217.53
8.1.40.0030.00617.51
8.1.30.0000.00717.57
8.1.20.0000.00917.70
8.1.10.0030.00517.48
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0070.00018.36
8.0.270.0040.00417.29
8.0.260.0030.00316.82
8.0.250.0000.00717.09
8.0.240.0080.00016.96
8.0.230.0030.00317.05
8.0.220.0070.00016.91
8.0.210.0030.00316.93
8.0.200.0030.00517.05
8.0.190.0040.00417.04
8.0.180.0000.00716.89
8.0.170.0030.00417.00
8.0.160.0000.00816.91
8.0.150.0060.00316.86
8.0.140.0030.00316.96
8.0.130.0030.00313.41
8.0.120.0000.00816.96
8.0.110.0030.00316.84
8.0.100.0030.00517.05
8.0.90.0070.00016.97
8.0.80.0090.00917.03
8.0.70.0060.00316.94
8.0.60.0040.00416.86
8.0.50.0000.00716.98
8.0.30.0120.00517.01
8.0.20.0090.01117.40
8.0.10.0040.00416.99
8.0.00.0070.01016.77
7.4.330.0050.00015.55
7.4.320.0000.00716.62
7.4.300.0060.00016.42
7.4.290.0030.00316.50
7.4.280.0000.00816.36
7.4.270.0040.00416.46
7.4.260.0000.00716.51
7.4.250.0040.00416.49
7.4.240.0030.00316.56
7.4.230.0030.00316.72
7.4.220.0030.01816.68
7.4.210.0110.00316.61
7.4.200.0080.00016.49
7.4.160.0110.00516.46
7.4.150.0120.00617.40
7.4.140.0080.01217.86
7.4.130.0120.00616.59
7.4.120.0070.01016.46
7.4.110.0160.00616.47
7.4.100.0090.01316.56
7.4.90.0140.00316.67
7.4.80.0170.00419.39
7.4.70.0100.00616.52
7.4.60.0080.00816.67
7.4.50.0060.01016.59
7.4.40.0130.00316.43
7.4.30.0110.00916.55
7.4.00.0000.01614.82
7.3.330.0030.00313.41
7.3.320.0050.00013.41
7.3.310.0070.00016.37
7.3.300.0070.00016.46
7.3.290.0030.00316.43
7.3.280.0100.00716.39
7.3.270.0090.00617.40
7.3.260.0120.00516.40
7.3.250.0110.00916.42
7.3.240.0080.01116.40
7.3.230.0120.00416.55
7.3.210.0030.01316.40
7.3.200.0130.00316.67
7.3.190.0060.01116.43
7.3.180.0150.00316.64
7.3.170.0120.00916.45
7.3.160.0130.00316.57
7.2.330.0100.00716.54
7.2.320.0110.01216.74
7.2.310.0140.00816.73
7.2.300.0050.01116.79
7.2.290.0000.01516.68
7.2.60.0090.00316.65
7.2.00.0070.01119.65
7.1.200.0100.00015.84
7.1.100.0070.01018.00
7.1.70.0090.00917.01
7.1.60.0230.01735.27
7.1.50.0180.01835.00
7.1.40.0210.01734.48
7.1.30.0250.01234.45
7.1.20.0260.00634.45
7.1.10.0030.01316.36
7.1.00.0130.00416.71
7.0.200.0100.00616.53
7.0.190.0100.00716.73
7.0.180.0080.01116.05
7.0.170.0070.01016.20
7.0.160.0030.01516.05
7.0.150.0060.01016.30
7.0.140.0160.00316.29
7.0.130.0060.01116.29
7.0.120.0060.00916.41
7.0.110.0000.01716.29
7.0.100.0110.00516.23
7.0.90.0110.00616.48
7.0.80.0090.00916.42
7.0.70.0000.01616.27
7.0.60.0000.01716.21
7.0.50.0130.00416.48
7.0.40.0040.01216.61
7.0.30.0030.01416.55
7.0.20.0040.01416.46
7.0.10.0000.01816.47
7.0.00.0060.01416.57

preferences:
52.08 ms | 401 KiB | 5 Q