3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{ static $variable = array('func' => 'Foo::secondFunction'); public static function firstFunction(){ return "PHP 5.6!"; } public static function secondFunction(){ return "PHP 7!"; } } $variable = array('func' => 'firstFunction'); echo Foo::$variable['func']();

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.0090.00916.46
8.3.50.0130.00821.28
8.3.40.0120.00318.84
8.3.30.0070.01418.81
8.3.20.0040.00420.48
8.3.10.0070.00021.94
8.3.00.0040.00421.85
8.2.180.0110.01116.63
8.2.170.0070.01022.96
8.2.160.0100.00320.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00419.79
8.2.110.0100.00021.13
8.2.100.0070.00417.93
8.2.90.0030.00519.17
8.2.80.0050.00317.97
8.2.70.0070.00317.50
8.2.60.0000.00817.68
8.2.50.0050.00318.09
8.2.40.0030.00620.61
8.2.30.0040.00419.59
8.2.20.0040.00417.73
8.2.10.0030.00518.13
8.2.00.0000.00718.06
8.1.280.0120.00325.92
8.1.270.0050.00322.19
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00019.33
8.1.230.0060.00617.89
8.1.220.0090.00017.79
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.25
8.1.180.0050.00318.10
8.1.170.0000.00918.54
8.1.160.0040.00420.66
8.1.150.0040.00420.64
8.1.140.0040.00419.57
8.1.130.0000.00917.56
8.1.120.0000.00717.41
8.1.110.0070.00417.41
8.1.100.0070.00017.28
8.1.90.0060.00317.47
8.1.80.0040.00417.41
8.1.70.0000.00717.42
8.1.60.0080.00017.59
8.1.50.0040.00417.56
8.1.40.0040.00417.52
8.1.30.0030.00617.52
8.1.20.0040.00417.57
8.1.10.0080.00017.63
8.1.00.0030.00617.49
8.0.300.0090.00018.77
8.0.290.0040.00416.58
8.0.280.0030.00318.32
8.0.270.0070.00017.17
8.0.260.0060.00017.14
8.0.250.0000.00716.96
8.0.240.0040.00416.88
8.0.230.0030.00316.77
8.0.220.0030.00316.83
8.0.210.0040.00416.83
8.0.200.0000.00616.90
8.0.190.0060.00316.86
8.0.180.0040.00416.75
8.0.170.0000.00716.88
8.0.160.0070.00016.83
8.0.150.0030.00516.67
8.0.140.0050.00216.70
8.0.130.0030.00313.29
8.0.120.0060.00316.77
8.0.110.0040.00416.66
8.0.100.0050.00316.71
8.0.90.0070.00016.95
8.0.80.0090.00616.80
8.0.70.0050.00316.71
8.0.60.0000.00816.79
8.0.50.0000.00716.82
8.0.30.0080.00917.04
8.0.20.0110.01017.41
8.0.10.0020.00516.90
8.0.00.0080.01216.86
7.4.330.0050.00016.85
7.4.320.0070.00016.34
7.4.300.0040.00416.49
7.4.290.0000.00716.50
7.4.280.0040.00416.55
7.4.270.0040.00416.52
7.4.260.0030.00316.48
7.4.250.0040.00416.62
7.4.240.0050.00216.57
7.4.230.0070.00016.70
7.4.220.0080.00816.53
7.4.210.0040.01116.44
7.4.200.0040.00416.50
7.4.160.0060.00916.42
7.4.150.0140.00617.40
7.4.140.0100.01217.86
7.4.130.0110.00516.53
7.4.120.0100.00716.31
7.4.110.0030.01316.57
7.4.100.0090.00916.42
7.4.90.0120.00616.52
7.4.80.0070.01119.39
7.4.70.0040.01316.56
7.4.60.0100.00716.42
7.4.50.0040.01116.65
7.4.40.0070.01016.39
7.4.30.0070.01016.34
7.4.00.0090.00614.95
7.3.330.0000.00513.39
7.3.320.0080.00013.20
7.3.310.0030.00616.23
7.3.300.0000.00716.37
7.3.290.0080.00816.35
7.3.280.0080.00816.36
7.3.270.0150.00317.40
7.3.260.0110.00616.53
7.3.250.0090.00816.30
7.3.240.0110.00616.47
7.3.230.0070.01016.51
7.3.210.0130.00316.35
7.3.200.0100.00719.39
7.3.190.0030.01316.41
7.3.180.0060.01016.54
7.3.170.0110.01216.45
7.3.160.0090.00616.58
7.3.10.0170.01016.34
7.3.00.0260.01016.10
7.2.330.0080.01116.53
7.2.320.0110.01116.64
7.2.310.0100.00616.79
7.2.300.0140.00316.37
7.2.290.0070.01416.29
7.2.130.0180.00316.52
7.2.120.0180.00416.62
7.2.110.0390.01016.48
7.2.100.0180.00916.61
7.2.90.0080.01316.54
7.2.80.0340.00716.74
7.2.70.0200.00816.87
7.2.60.0370.00616.74
7.2.50.0360.00316.77
7.2.40.0270.00716.89
7.2.30.0140.00616.50
7.2.20.0080.00916.38
7.2.10.0150.00316.43
7.2.00.0040.00917.96
7.1.250.0030.00714.88
7.1.200.0090.00015.75
7.1.100.0070.00717.84
7.1.70.0000.01016.80
7.1.60.0070.01019.40
7.1.50.0100.01016.87
7.1.00.0030.07722.43
7.0.200.0000.01016.40
7.0.60.0000.07321.68
7.0.50.0030.04017.95
7.0.40.0030.04720.02
7.0.30.0330.07020.17
7.0.20.0430.05320.06
7.0.10.0030.09320.12
7.0.00.0100.06320.18
5.6.280.0070.06321.07
5.6.210.0030.04020.61
5.6.200.0030.08018.18
5.6.190.0070.05720.67
5.6.180.0330.06720.42
5.6.170.0330.06720.40
5.6.160.0100.08720.55
5.6.150.0070.07318.29
5.6.140.0100.04018.19
5.6.130.0030.05318.27
5.6.120.0000.09021.04
5.6.110.0130.08320.97
5.6.100.0100.05021.13
5.6.90.0000.04320.95
5.6.80.0030.08720.53
5.5.350.4300.03320.53
5.5.340.0070.07017.98
5.5.330.0070.08320.56
5.5.320.0430.03720.25
5.5.310.0170.05020.19
5.5.300.0030.07018.04
5.5.290.0070.04017.98
5.5.280.0130.06020.88
5.5.270.0030.09020.84
5.5.260.0100.07720.76
5.5.250.0030.07320.69
5.5.240.0300.07020.16

preferences:
60.21 ms | 401 KiB | 5 Q