3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x{ public function __construct() { $params = ['foo']; $this->$params[0](); } public function foo() { echo 'oh, foo'; } } new x;

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.0080.00616.50
8.3.50.0120.00821.28
8.3.40.0070.01518.71
8.3.30.0070.00718.85
8.3.20.0040.00420.34
8.3.10.0040.00423.50
8.3.00.0070.00023.58
8.2.180.0070.00716.75
8.2.170.0130.00319.03
8.2.160.0110.00722.96
8.2.150.0000.00825.66
8.2.140.0050.00324.66
8.2.130.0040.00419.83
8.2.120.0000.00726.35
8.2.110.0090.00021.00
8.2.100.0100.00318.04
8.2.90.0040.00419.35
8.2.80.0000.00817.97
8.2.70.0030.00617.38
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0000.00720.47
8.2.30.0000.00719.52
8.2.20.0080.00017.86
8.2.10.0000.00718.18
8.2.00.0050.00318.02
8.1.280.0110.00425.92
8.1.270.0050.00322.19
8.1.260.0070.00328.09
8.1.250.0080.00028.09
8.1.240.0040.00422.01
8.1.230.0060.00618.99
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0070.00317.25
8.1.190.0000.00917.35
8.1.180.0060.00318.10
8.1.170.0060.00318.64
8.1.160.0050.00220.75
8.1.150.0040.00418.88
8.1.140.0040.00419.56
8.1.130.0030.00317.68
8.1.120.0000.00717.36
8.1.110.0070.00017.43
8.1.100.0040.00417.36
8.1.90.0000.00717.43
8.1.80.0000.00817.47
8.1.70.0040.00417.48
8.1.60.0000.00717.59
8.1.50.0000.00817.36
8.1.40.0000.00817.47
8.1.30.0000.00817.59
8.1.20.0050.00217.57
8.1.10.0040.00417.44
8.1.00.0050.00317.33
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0080.00018.34
8.0.270.0070.00017.31
8.0.260.0030.00517.18
8.0.250.0040.00416.93
8.0.240.0030.00316.90
8.0.230.0040.00317.05
8.0.220.0000.00716.96
8.0.210.0000.00817.00
8.0.200.0060.00016.90
8.0.190.0040.00417.01
8.0.180.0000.00916.92
8.0.170.0040.00417.01
8.0.160.0000.00716.94
8.0.150.0000.00716.91
8.0.140.0030.00316.79
8.0.130.0050.00013.34
8.0.120.0000.00816.84
8.0.110.0040.00416.88
8.0.100.0070.00016.79
8.0.90.0000.00716.95
8.0.80.0040.01816.96
8.0.70.0000.00717.01
8.0.60.0000.00816.85
8.0.50.0050.00316.84
8.0.30.0070.01017.12
8.0.20.0140.00617.40
8.0.10.0000.00716.95
8.0.00.0120.00616.88
7.4.330.0000.00516.73
7.4.320.0000.00616.29
7.4.300.0000.00616.50
7.4.290.0000.00716.52
7.4.280.0080.00216.39
7.4.270.0030.00316.46
7.4.260.0000.00716.59
7.4.250.0000.00816.45
7.4.240.0050.00216.53
7.4.230.0040.00416.69
7.4.220.0090.00616.44
7.4.210.0110.00516.52
7.4.200.0030.00316.43
7.4.160.0090.00616.58
7.4.150.0060.01217.40
7.4.140.0090.01017.86
7.4.130.0070.01016.54
7.4.120.0070.01216.56
7.4.110.0140.00516.45
7.4.100.0110.00616.55
7.4.90.0120.02016.34
7.4.80.0060.01019.39
7.4.70.0040.01316.51
7.4.60.0030.01316.48
7.4.50.0080.00416.54
7.4.40.0060.01616.23
7.4.30.0120.00416.64
7.4.00.0040.01414.75
7.3.330.0000.00513.38
7.3.320.0050.00013.35
7.3.310.0080.00016.38
7.3.300.0030.00316.45
7.3.290.0030.00316.37
7.3.280.0090.00816.41
7.3.270.0100.01317.40
7.3.260.0170.00416.29
7.3.250.0060.01316.32
7.3.240.0060.01416.45
7.3.230.0070.01016.39
7.3.210.0130.00316.31
7.3.200.0120.00819.39
7.3.190.0190.01016.53
7.3.180.0100.00616.39
7.3.170.0040.01516.48
7.3.160.0030.01316.63
7.2.330.0060.01216.54
7.2.320.0100.00616.65
7.2.310.0130.00316.65
7.2.300.0050.01116.62
7.2.290.0080.00816.36
7.2.60.0090.00316.66
7.2.00.0030.01019.19
7.1.200.0090.00315.73
7.1.100.0090.00318.19
7.1.70.0000.00817.18
7.1.60.0140.01019.27
7.1.50.0070.01416.87
7.1.00.0030.07722.46
7.0.200.0070.00316.46
7.0.60.0130.07021.63
7.0.50.0000.07017.97
7.0.40.0100.08320.30
7.0.30.0270.05020.11
7.0.20.0230.05020.07
7.0.10.0070.05020.22
7.0.00.0170.08320.06
5.6.280.0000.03720.87
5.6.210.0070.05720.77
5.6.200.0070.08318.16
5.6.190.0070.04020.42
5.6.180.0400.07320.46
5.6.170.0270.06020.41
5.6.160.0130.07720.54
5.6.150.0070.08318.29
5.6.140.0030.05318.15
5.6.130.0100.04718.18
5.6.120.0070.05721.13
5.6.110.0030.08020.99
5.6.100.0070.05021.09
5.6.90.0070.06020.98
5.6.80.0100.07720.49
5.5.350.0100.07020.32
5.5.340.0030.06717.95
5.5.330.0100.08020.28
5.5.320.0430.04720.29
5.5.310.0230.03320.24
5.5.300.0130.04317.97
5.5.290.0170.07318.07
5.5.280.0070.06020.89
5.5.270.0070.08720.87
5.5.260.0000.07320.85
5.5.250.0030.05720.59
5.5.240.0030.08720.05

preferences:
43.85 ms | 401 KiB | 5 Q