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.0170.00316.61
8.3.50.0150.00016.26
8.3.40.0150.00318.82
8.3.30.0060.00918.84
8.3.20.0040.00420.14
8.3.10.0040.00421.71
8.3.00.0070.00020.94
8.2.180.0120.00318.66
8.2.170.0170.00322.96
8.2.160.0070.01020.39
8.2.150.0050.00324.18
8.2.140.0060.01224.66
8.2.130.0080.00021.11
8.2.120.0000.00826.35
8.2.110.0030.00619.33
8.2.100.0080.00418.03
8.2.90.0050.00319.15
8.2.80.0000.00817.97
8.2.70.0090.00917.25
8.2.60.0120.00517.30
8.2.50.0080.00018.07
8.2.40.0030.00622.28
8.2.30.0050.00220.59
8.2.20.0050.00317.73
8.2.10.0000.00718.05
8.2.00.0080.00018.04
8.1.280.0120.00425.92
8.1.270.0060.00920.16
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00322.59
8.1.230.0080.00319.16
8.1.220.0030.00617.79
8.1.210.0080.00018.77
8.1.200.0060.00317.22
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00618.43
8.1.160.0020.00520.69
8.1.150.0070.00018.88
8.1.140.0050.00319.57
8.1.130.0000.00817.64
8.1.120.0070.00017.35
8.1.110.0040.00417.24
8.1.100.0050.00217.38
8.1.90.0040.00417.33
8.1.80.0000.00717.37
8.1.70.0040.00417.44
8.1.60.0040.00417.55
8.1.50.0040.00417.42
8.1.40.0040.00417.54
8.1.30.0030.00517.68
8.1.20.0050.00217.63
8.1.10.0040.00417.62
8.1.00.0050.00217.43
8.0.300.0040.00418.77
8.0.290.0000.00916.88
8.0.280.0030.00318.43
8.0.270.0040.00417.20
8.0.260.0030.00317.12
8.0.250.0070.00016.95
8.0.240.0030.00316.86
8.0.230.0030.00316.84
8.0.220.0030.00316.91
8.0.210.0030.00616.87
8.0.200.0080.00017.01
8.0.190.0030.00616.85
8.0.180.0000.00716.90
8.0.170.0000.00816.83
8.0.160.0040.00416.86
8.0.150.0000.00816.89
8.0.140.0000.00716.82
8.0.130.0030.00313.39
8.0.120.0000.00816.81
8.0.110.0070.00016.78
8.0.100.0040.00416.79
8.0.90.0000.00716.85
8.0.80.0040.01116.77
8.0.70.0000.00816.84
8.0.60.0050.00316.76
8.0.50.0000.00716.76
8.0.30.0100.00817.18
8.0.20.0090.01217.40
8.0.10.0070.00016.88
8.0.00.0080.00916.78
7.4.330.0000.00516.66
7.4.320.0000.00616.53
7.4.300.0030.00316.60
7.4.290.0000.00816.48
7.4.280.0000.00816.58
7.4.270.0000.00716.59
7.4.260.0070.00016.47
7.4.250.0040.00416.54
7.4.240.0040.00416.51
7.4.230.0030.00316.60
7.4.220.0060.01616.70
7.4.210.0170.00416.63
7.4.200.0000.00816.25
7.4.160.0080.00816.50
7.4.150.0100.01017.40
7.4.140.0120.00717.86
7.4.130.0030.01616.50
7.4.120.0050.01116.54
7.4.110.0110.00616.57
7.4.100.0060.01616.58
7.4.90.0180.00016.42
7.4.80.0000.01719.39
7.4.70.0160.00416.40
7.4.60.0040.01116.34
7.4.50.0030.01016.57
7.4.40.0090.00616.61
7.4.30.0040.01516.50
7.4.00.0070.01214.93
7.3.330.0030.00313.08
7.3.320.0060.00013.08
7.3.310.0040.00416.19
7.3.300.0060.00016.31
7.3.290.0050.01016.26
7.3.280.0060.01016.31
7.3.270.0070.01017.40
7.3.260.0090.00816.25
7.3.250.0140.00416.41
7.3.240.0090.00816.33
7.3.230.0150.00616.40
7.3.210.0160.00416.26
7.3.200.0140.00716.53
7.3.190.0060.01116.35
7.3.180.0120.00416.58
7.3.170.0050.01116.34
7.3.160.0100.00616.37
7.3.120.0070.01014.90
7.3.110.0110.00414.79
7.3.100.0100.00314.60
7.3.90.0100.00714.52
7.3.80.0030.00614.63
7.3.70.0070.00714.57
7.3.60.0030.00614.86
7.3.50.0080.00314.85
7.3.40.0040.00814.84
7.3.30.0080.00614.60
7.3.20.0070.00716.66
7.3.10.0040.00816.51
7.3.00.0030.01316.55
7.2.330.0090.00916.62
7.2.320.0090.01016.71
7.2.310.0100.00716.66
7.2.300.0060.01216.48
7.2.290.0120.00616.58
7.2.250.0040.01514.66
7.2.240.0130.00314.90
7.2.230.0030.01314.99
7.2.220.0070.00715.12
7.2.210.0140.00314.48
7.2.200.0060.00614.78
7.2.190.0030.00914.76
7.2.180.0040.00814.95
7.2.170.0120.00314.61
7.2.60.0070.00716.96
7.2.00.0000.01419.54
7.1.330.0040.01115.65
7.1.320.0070.01015.54
7.1.310.0100.00715.50
7.1.300.0040.01115.82
7.1.290.0030.00715.73
7.1.280.0060.00915.71
7.1.270.0070.00715.32
7.1.260.0110.00315.50
7.1.200.0070.00415.36
7.1.100.0030.00717.87
7.1.70.0050.00217.09
7.1.60.0060.01919.52
7.1.50.0100.00717.02
7.1.00.0070.07322.43
7.0.200.0000.00816.63
7.0.60.0030.07019.90
7.0.50.0100.06317.85
7.0.40.0070.06020.23
7.0.30.0430.05320.07
7.0.20.0300.07320.16
7.0.10.0030.04320.24
7.0.00.0030.09020.25
5.6.210.0130.07720.57
5.6.200.0100.07318.20
5.6.190.0030.04320.60
5.6.180.0400.06720.50
5.6.170.0270.05720.55
5.6.160.0030.05720.54
5.6.150.0200.06718.23
5.6.140.0100.08018.15
5.6.130.0030.04318.18
5.6.120.0170.04020.99
5.6.110.0100.06321.00
5.6.100.0100.05721.01
5.6.90.0170.07320.98
5.6.80.0000.08720.41
5.5.350.4100.04320.46
5.5.340.0000.10317.97
5.5.330.0100.07320.41
5.5.320.0270.05320.30
5.5.310.0330.07720.35
5.5.300.0030.06318.08
5.5.290.0030.06317.92
5.5.280.0130.07720.98
5.5.270.0100.04320.87
5.5.260.0030.07720.84
5.5.250.0070.08320.66
5.5.240.4030.03720.03

preferences:
59.84 ms | 400 KiB | 5 Q