3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getSomethingA() { return 'A'; } function getSomethingB() { return 'B'; } function getSomethingDynamic($method) { // do your summing/averaging in this method // use the passed method name to fetch the desired value return $method(); } echo getSomethingDynamic('getSomethingA'), "\n", getSomethingDynamic('getSomethingb');

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.140.0090.01217.37
8.4.130.0080.01117.83
8.4.120.0120.00820.57
8.4.110.0110.00922.43
8.4.100.0100.00719.42
8.4.90.0120.00718.73
8.4.80.0090.01019.39
8.4.70.0120.00717.84
8.4.60.0150.00320.54
8.4.50.0120.00818.39
8.4.40.0090.00617.50
8.4.30.0120.00818.56
8.4.20.0130.00618.07
8.4.10.0080.00020.64
8.3.270.0100.00816.38
8.3.260.0120.00716.49
8.3.250.0110.00818.88
8.3.240.0110.00316.40
8.3.230.0150.00416.44
8.3.220.0150.00217.18
8.3.210.0060.00316.63
8.3.200.0050.00316.66
8.3.190.0110.00817.25
8.3.180.0030.00516.48
8.3.170.0040.01119.06
8.3.160.0060.00320.22
8.3.150.0110.00716.36
8.3.140.0120.00619.00
8.3.130.0030.00518.38
8.3.120.0080.00018.99
8.3.110.0080.00020.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0060.00316.75
8.3.70.0180.00418.10
8.3.60.0140.00018.16
8.3.50.0130.00724.47
8.3.40.0130.01018.38
8.3.30.0150.00618.79
8.3.20.0070.00021.95
8.3.10.0050.00321.95
8.3.00.0040.00423.52
8.2.290.0070.01120.20
8.2.280.0050.00319.98
8.2.270.0030.01219.15
8.2.260.0040.00416.41
8.2.250.0090.00916.44
8.2.240.0060.00318.84
8.2.230.0060.00322.58
8.2.220.0080.01237.54
8.2.210.0070.01026.77
8.2.200.0080.00016.50
8.2.190.0140.00716.58
8.2.180.0110.00316.50
8.2.170.0070.00718.79
8.2.160.0090.00622.96
8.2.150.0050.00325.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0070.00320.99
8.2.100.0080.00317.66
8.2.90.0040.00418.01
8.2.80.0000.00819.03
8.2.70.0040.00417.50
8.2.60.0050.00317.55
8.2.50.0000.00818.05
8.2.40.0020.00520.54
8.2.30.0000.00717.93
8.2.20.0050.00217.96
8.2.10.0080.00019.04
8.2.00.0000.00719.11
8.1.330.0110.00821.97
8.1.320.0110.00816.25
8.1.310.0040.00418.38
8.1.300.0040.00420.40
8.1.290.0090.00018.88
8.1.280.0110.00725.92
8.1.270.0070.00022.19
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00422.14
8.1.230.0080.00320.82
8.1.220.0070.00017.74
8.1.210.0000.00819.89
8.1.200.0030.00617.23
8.1.190.0050.00317.10
8.1.180.0050.00318.10
8.1.170.0040.00417.62
8.1.160.0000.00718.82
8.1.150.0000.00718.79
8.1.140.0000.00718.75
8.1.130.0000.00820.07
8.1.120.0040.00417.28
8.1.110.0000.00817.33
8.1.100.0040.00417.18
8.1.90.0030.00317.33
8.1.80.0040.00417.21
8.1.70.0070.00017.27
8.1.60.0000.00817.39
8.1.50.0000.00817.28
8.1.40.0040.00417.44
8.1.30.0050.00317.62
8.1.20.0000.00917.61
8.1.10.0000.00817.49
8.1.00.0050.00217.41
8.0.300.0040.00420.00
8.0.290.0060.00316.75
8.0.280.0030.00318.45
8.0.270.0030.00318.08
8.0.260.0030.00318.41
8.0.250.0030.00316.95
8.0.240.0040.00416.90
8.0.230.0070.00016.87
8.0.220.0000.00716.71
8.0.210.0030.00516.80
8.0.200.0000.00716.75
8.0.190.0040.00416.93
8.0.180.0000.00716.71
8.0.170.0000.00816.73
8.0.160.0050.00316.91
8.0.150.0070.00016.59
8.0.140.0110.00016.67
8.0.130.0050.00013.23
8.0.120.0040.00416.78
8.0.110.0050.00316.79
8.0.100.0000.00816.69
8.0.90.0040.00416.71
8.0.80.0080.01116.80
8.0.70.0040.00416.80
8.0.60.0050.00316.88
8.0.50.0000.00816.88
8.0.30.0090.00616.76
8.0.20.0120.01017.05
8.0.10.0040.00416.83
8.0.00.0120.01216.85
7.4.330.0060.00015.55
7.4.320.0000.00716.51
7.4.300.0070.00016.43
7.4.290.0060.00016.34
7.4.280.0070.00016.60
7.4.270.0040.00416.54
7.4.260.0050.00013.20
7.4.250.0000.00716.46
7.4.240.0040.00316.49
7.4.230.0030.00316.60
7.4.220.0020.00516.52
7.4.210.0090.00816.46
7.4.200.0040.00416.66
7.4.130.0070.01016.50
7.4.120.0100.00816.54
7.4.40.0220.00016.46
7.4.30.0070.01016.45
7.4.20.0030.01616.52
7.4.10.0120.00916.19
7.4.00.0100.00716.34
7.3.330.0000.00716.09
7.3.320.0050.00013.10
7.3.310.0070.00016.27
7.3.300.0070.00016.25
7.3.290.0080.01116.22
7.3.260.0100.01016.53
7.3.160.0070.01016.45
7.3.150.0070.01116.46
7.3.140.0190.00316.43
7.3.130.0030.01716.53
7.3.120.0120.00316.14
7.3.110.0070.01116.59
7.3.100.0040.01216.54
7.3.90.0060.01216.29
7.3.80.0120.00916.40
7.3.70.0140.00316.26
7.3.60.0100.01016.10
7.3.50.0120.00416.42
7.3.40.0120.00316.27
7.3.30.0070.01116.18
7.3.20.0100.00716.30
7.3.10.0180.00016.35
7.3.00.0080.00816.38
7.2.290.0100.01416.48
7.2.280.0120.00616.36
7.2.270.0040.01416.40
7.2.260.0160.00616.34
7.2.250.0120.00616.61
7.2.240.0040.01316.38
7.2.230.0130.00316.57
7.2.220.0100.01016.60
7.2.210.0030.01316.62
7.2.200.0060.01316.47
7.2.190.0030.01416.53
7.2.180.0150.00316.34
7.2.170.0070.01016.46
7.2.160.0060.01016.58
7.2.150.0110.01116.41
7.2.140.0090.00916.42
7.2.130.0110.00816.59
7.2.120.0130.00316.57
7.2.110.0060.01316.46
7.2.100.0160.00816.48
7.2.90.0150.00816.33
7.2.80.0070.01016.43
7.2.70.0150.00316.43
7.2.60.0150.00616.46
7.2.50.0150.00616.37
7.2.40.0120.00916.54
7.2.30.0040.01316.64
7.2.20.0040.01316.54
7.2.10.0100.01016.30
7.2.00.0100.00716.68

preferences:
30.5 ms | 403 KiB | 5 Q