3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Geolocation { function myMethod($param1, $param2) { return $param1 . ' ' . $param2; } } $method = 'myMethod'; $params = [1, 2]; $geo = new Geolocation(); $res = $geo->{$method}(...$params); echo json_encode($res);

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.4.20.0200.00017.73
8.4.10.0090.00017.61
8.3.150.0090.00917.16
8.3.140.0080.00016.78
8.3.130.0000.00918.27
8.3.120.0130.00720.81
8.3.110.0040.00416.60
8.3.100.0090.00024.06
8.3.90.0040.00426.77
8.3.80.0130.00017.97
8.3.70.0140.00018.18
8.3.60.0140.00718.43
8.3.50.0120.01021.22
8.3.40.0110.01118.54
8.3.30.0120.00318.55
8.3.20.0040.00418.51
8.3.10.0040.00421.82
8.3.00.0040.00417.80
8.2.260.0070.01116.53
8.2.250.0080.00018.23
8.2.240.0100.00019.07
8.2.230.0070.00320.94
8.2.220.0060.00337.54
8.2.210.0030.00526.77
8.2.200.0030.00618.40
8.2.190.0100.00716.58
8.2.180.0140.00716.50
8.2.170.0100.00322.96
8.2.160.0100.01020.93
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00418.03
8.2.120.0080.00026.35
8.2.110.0060.00322.21
8.2.100.0080.00417.72
8.2.90.0050.00317.84
8.2.80.0040.00419.17
8.2.70.0040.00417.50
8.2.60.0060.00317.68
8.2.50.0050.00318.10
8.2.40.0050.00322.26
8.2.30.0040.00419.23
8.2.20.0000.00717.67
8.2.10.0040.00418.09
8.2.00.0000.01118.09
8.1.310.0070.00718.50
8.1.300.0060.01019.42
8.1.290.0060.00330.84
8.1.280.0070.01425.92
8.1.270.0070.00023.97
8.1.260.0060.00926.35
8.1.250.0040.00428.09
8.1.240.0040.00423.93
8.1.230.0040.00720.88
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0100.00017.35
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00818.35
8.1.160.0070.00019.04
8.1.150.0070.00018.82
8.1.140.0000.00719.55
8.1.130.0000.00717.68
8.1.120.0000.00817.35
8.1.110.0040.00417.44
8.1.100.0030.00317.44
8.1.90.0040.00417.32
8.1.80.0040.00417.43
8.1.70.0040.00317.46
8.1.60.0000.00717.52
8.1.50.0000.00817.50
8.1.40.0000.00817.38
8.1.30.0000.00817.59
8.1.20.0050.00317.61
8.1.10.0000.00717.59
8.1.00.0000.00817.46
8.0.300.0030.00420.04
8.0.290.0040.00416.63
8.0.280.0030.00318.43
8.0.270.0000.00717.20
8.0.260.0000.00617.23
8.0.250.0040.00416.99
8.0.240.0030.00316.88
8.0.230.0080.00016.97
8.0.220.0000.00816.80
8.0.210.0000.00816.75
8.0.200.0040.00416.93
8.0.190.0060.00316.91
8.0.180.0000.00716.94
8.0.170.0040.00416.94
8.0.160.0000.00716.91
8.0.150.0040.00816.85
8.0.140.0030.00416.76
8.0.130.0060.00313.32
8.0.120.0000.00816.73
8.0.110.0040.00416.88
8.0.100.0070.00016.67
8.0.90.0030.00316.94
8.0.80.0060.01616.92
8.0.70.0000.00816.74
8.0.60.0040.00416.88
8.0.50.0070.00016.71
8.0.30.0120.00617.17
8.0.20.0140.00817.40
8.0.10.0080.00016.89
8.0.00.0130.00916.59
7.4.330.0000.00515.08
7.4.320.0030.00316.58
7.4.300.0080.00016.55
7.4.290.0040.00416.59
7.4.280.0080.00016.50
7.4.270.0070.00316.48
7.4.260.0030.00516.59
7.4.250.0000.00816.55
7.4.240.0040.00416.55
7.4.230.0040.00416.33
7.4.220.0070.01116.50
7.4.210.0040.01116.64
7.4.200.0050.00216.66
7.4.160.0080.00816.64
7.4.150.0110.00717.40
7.4.140.0130.00817.86
7.4.130.0100.00916.47
7.4.120.0110.00616.48
7.4.110.0140.00716.46
7.4.100.0100.00716.46
7.4.90.0120.00416.38
7.4.80.0080.00819.39
7.4.70.0060.01516.34
7.4.60.0100.00716.48
7.4.50.0150.00316.41
7.4.40.0100.00616.53
7.4.30.0100.00716.50
7.4.00.0000.01315.07
7.3.330.0030.00313.24
7.3.320.0050.00013.23
7.3.310.0040.00416.09
7.3.300.0030.00316.19
7.3.290.0080.00916.21
7.3.280.0070.01016.23
7.3.270.0060.01117.40
7.3.260.0120.01216.28
7.3.250.0140.00816.33
7.3.240.0110.00816.25
7.3.230.0080.00816.39
7.3.210.0100.00616.28
7.3.200.0090.00916.20
7.3.190.0080.00816.40
7.3.180.0070.01116.30
7.3.170.0030.01316.28
7.3.160.0060.01016.21
7.3.10.0080.00516.36
7.3.00.0080.00716.54
7.2.330.0070.01016.36
7.2.320.0070.01016.36
7.2.310.0160.00016.50
7.2.300.0100.00716.66
7.2.290.0030.01316.52
7.2.130.0100.00616.97
7.2.120.0090.00616.82
7.2.110.0090.00916.68
7.2.100.0060.00716.82
7.2.90.0080.00816.70
7.2.80.0090.00416.83
7.2.70.0090.00716.72
7.2.60.0050.00816.87
7.2.50.0080.00616.64
7.2.40.0080.00816.97
7.2.30.0060.00916.81
7.2.20.0100.00716.77
7.2.10.0080.00416.71
7.2.00.0050.00917.37
7.1.250.0040.00715.74
7.1.200.0100.00315.83
7.1.100.0050.00818.26
7.1.70.0070.00017.25
7.1.60.0070.01819.32
7.1.00.0030.07722.28
7.0.200.0030.00616.94
7.0.90.0630.06319.89
7.0.80.0670.07319.96
7.0.70.0570.06719.95
7.0.60.0500.06019.95
7.0.50.0470.05320.24
7.0.40.0030.06320.08
7.0.30.0200.07320.09
7.0.20.0000.06320.13
7.0.10.0070.05020.07
7.0.00.0030.04320.04
5.6.280.0030.07321.11
5.6.240.0100.07720.69
5.6.230.0170.06320.63
5.6.220.0030.08020.64
5.6.210.0200.06720.64
5.6.200.0130.07721.07
5.6.190.0030.06721.08
5.6.180.0100.08321.11
5.6.170.0170.07720.99
5.6.160.0070.04721.17
5.6.150.0030.05320.95
5.6.140.0070.07021.01
5.6.130.0100.06321.07
5.6.120.0100.08321.05
5.6.110.0170.08021.00
5.6.100.0030.07321.09
5.6.90.0070.08320.94
5.6.80.0170.07020.52
5.6.70.0070.07720.39
5.6.60.0100.07320.38
5.6.50.0070.08320.39
5.6.40.0070.08020.31
5.6.30.0130.07320.48
5.6.20.0030.08020.53
5.6.10.0070.07020.36
5.6.00.0000.05020.30
5.5.380.0170.04720.46
5.5.370.0000.06720.36
5.5.360.0100.08020.49
5.5.350.0070.08720.40
5.5.340.0100.04020.80
5.5.330.0030.08020.83
5.5.320.0030.08720.84
5.5.310.0070.08020.80
5.5.300.0100.07720.83
5.5.290.0070.06320.79
5.5.280.0130.07020.86
5.5.270.0100.07720.85
5.5.260.0070.08020.79
5.5.250.0170.06720.65
5.5.240.0070.08020.30
5.5.230.0200.07320.31
5.5.220.0000.05020.15
5.5.210.0030.08020.11
5.5.200.0100.07020.13
5.5.190.0030.07720.27
5.5.180.0100.07320.08
5.5.160.0070.07720.28
5.5.150.0030.05720.23
5.5.140.0100.06720.27
5.5.130.0100.07020.25
5.5.120.0070.07720.17
5.5.110.0070.06320.27
5.5.100.0100.07319.98
5.5.90.0200.06320.07
5.5.80.0100.06720.06
5.5.70.0070.07320.04
5.5.60.0070.04720.16
5.5.50.0030.04720.15
5.5.40.0030.08320.15
5.5.30.0000.08320.15
5.5.20.0100.07320.05
5.5.10.0070.06320.04
5.5.00.0130.06320.10

preferences:
64.52 ms | 403 KiB | 5 Q