3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', true); error_reporting(E_ALL); class name { public static function methodname() { var_dump('methodname called'); } } $array = array('key' => 'methodname'); //name::$array['key']();

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.0180.00318.18
8.3.50.0110.00822.06
8.3.40.0110.00418.59
8.3.30.0110.00418.46
8.3.20.0070.00020.34
8.3.10.0000.00821.76
8.3.00.0040.00420.83
8.2.180.0120.00316.75
8.2.170.0090.00622.96
8.2.160.0100.00320.22
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00419.39
8.2.120.0040.00426.35
8.2.110.0070.00322.31
8.2.100.0060.00617.90
8.2.90.0040.00419.01
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0040.00417.76
8.2.50.0040.00418.07
8.2.40.0040.00422.36
8.2.30.0070.00020.68
8.2.20.0000.00717.67
8.2.10.0040.00418.05
8.2.00.0030.00518.04
8.1.280.0030.01325.92
8.1.270.0180.00020.09
8.1.260.0040.00428.09
8.1.250.0050.00228.09
8.1.240.0100.00022.04
8.1.230.0080.00319.18
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0090.00017.35
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0000.00918.60
8.1.160.0040.00420.64
8.1.150.0000.00718.93
8.1.140.0030.00619.46
8.1.130.0070.00017.63
8.1.120.0040.00417.41
8.1.110.0000.00717.34
8.1.100.0000.00717.39
8.1.90.0000.00717.35
8.1.80.0070.00017.38
8.1.70.0070.00017.27
8.1.60.0030.00617.41
8.1.50.0000.00817.30
8.1.40.0060.00317.47
8.1.30.0000.00817.46
8.1.20.0050.00317.52
8.1.10.0030.00717.34
8.1.00.0050.00217.39
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0030.00318.37
8.0.270.0000.00717.11
8.0.260.0000.00617.09
8.0.250.0040.00416.88
8.0.240.0070.00016.71
8.0.230.0030.00316.89
8.0.220.0070.00016.70
8.0.210.0050.00316.90
8.0.200.0000.00616.92
8.0.190.0040.00416.71
8.0.180.0000.00816.82
8.0.170.0050.00316.74
8.0.160.0040.00416.77
8.0.150.0000.00716.76
8.0.140.0050.00216.81
8.0.130.0000.00513.19
8.0.120.0020.00516.72
8.0.110.0000.00716.75
8.0.100.0000.00716.76
8.0.90.0080.00016.92
8.0.80.0040.01016.71
8.0.70.0040.00416.93
8.0.60.0040.00416.85
8.0.50.0000.00816.77
8.0.30.0060.01217.05
8.0.20.0090.01117.40
8.0.10.0040.00416.89
8.0.00.0100.01116.73
7.4.330.0000.00516.75
7.4.320.0060.00016.52
7.4.300.0070.00016.44
7.4.290.0030.00616.57
7.4.280.0030.00516.50
7.4.270.0030.00316.43
7.4.260.0030.00316.50
7.4.250.0000.00716.40
7.4.240.0000.00716.45
7.4.230.0000.00716.48
7.4.220.0190.00616.32
7.4.210.0070.01416.57
7.4.200.0000.00716.55
7.4.160.0160.00016.60
7.4.150.0030.01517.40
7.4.140.0140.00317.86
7.4.130.0070.01116.41
7.4.120.0060.01216.32
7.4.110.0050.01616.42
7.4.100.0070.01016.36
7.4.90.0030.01316.46
7.4.80.0130.00319.39
7.4.70.0060.01116.32
7.4.60.0130.00316.37
7.4.50.0070.00716.39
7.4.40.0090.00916.46
7.4.30.0030.01416.53
7.4.00.0070.01014.46
7.3.330.0050.00213.20
7.3.320.0080.00013.24
7.3.310.0040.00416.18
7.3.300.0030.00316.19
7.3.290.0060.00916.15
7.3.280.0060.00916.18
7.3.270.0080.01217.40
7.3.260.0100.00716.11
7.3.250.0090.01116.35
7.3.240.0100.00816.09
7.3.230.0100.00716.39
7.3.210.0090.01016.39
7.3.200.0120.00616.28
7.3.190.0080.00816.51
7.3.180.0040.01116.26
7.3.170.0110.01116.30
7.3.160.0080.01516.19
7.3.10.0040.00716.61
7.3.00.0090.00316.47
7.2.330.0170.00016.27
7.2.320.0200.00316.48
7.2.310.0100.00716.23
7.2.300.0070.01616.54
7.2.290.0100.01016.55
7.2.130.0090.00616.89
7.2.120.0070.00716.85
7.2.110.0000.01216.69
7.2.100.0030.00616.66
7.2.90.0030.01016.66
7.2.80.0000.01016.49
7.2.70.0030.00716.68
7.2.60.0060.00616.68
7.2.50.0000.01116.81
7.2.40.0040.00816.76
7.2.30.0090.00616.38
7.2.20.0030.00916.80
7.2.10.0030.00716.75
7.2.00.0070.00717.96
7.1.250.0000.00915.47
7.1.100.0090.00917.79
7.1.70.0100.01016.87
7.1.60.0100.01419.52
7.1.50.0070.01716.53
7.1.00.0030.07722.27
7.0.200.0000.00816.71
7.0.60.0030.05719.82
7.0.50.0100.07717.88
7.0.40.0130.08320.23
7.0.30.0400.05720.18
7.0.20.0300.07020.20
7.0.10.0100.03720.20
7.0.00.0130.04720.33
5.6.280.0000.07021.04
5.6.210.0170.05720.54
5.6.200.0100.08318.14
5.6.190.0070.04320.50
5.6.180.0300.05720.61
5.6.170.0300.06320.50
5.6.160.0070.06020.71
5.6.150.0000.08318.27
5.6.140.0070.08018.14
5.6.130.0100.07718.14
5.6.120.0030.06021.05
5.6.110.0070.08721.13
5.6.100.0170.07321.01
5.6.90.0070.08021.00
5.6.80.0070.04020.51
5.5.350.3900.04020.38
5.5.340.0070.04017.96
5.5.330.0030.05020.57
5.5.320.0270.05020.34
5.5.310.0270.08320.28
5.5.300.0070.05318.05
5.5.290.0000.06017.98
5.5.280.0070.05020.65
5.5.270.0170.07320.98
5.5.260.0070.06320.87
5.5.250.0070.07720.70
5.5.240.4200.04320.26

preferences:
59.9 ms | 401 KiB | 5 Q