3v4l.org

run code in 300+ PHP versions simultaneously
<?php $functionName = 'MyFunction'; ${$functionName} = function() { echo 'called.'; }; var_dump(get_defined_functions());

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.0130.01018.43
8.3.50.0170.00721.96
8.3.40.0210.00718.59
8.3.30.0200.00718.92
8.3.20.0140.00020.31
8.3.10.0060.00621.98
8.3.00.0100.00320.68
8.2.180.0180.01416.38
8.2.170.0160.01022.96
8.2.160.0230.01019.25
8.2.150.0040.00824.18
8.2.140.0120.00324.66
8.2.130.0260.00726.16
8.2.120.0100.00319.36
8.2.110.0120.00322.14
8.2.100.0130.00719.51
8.2.90.0000.01019.22
8.2.80.0060.00617.97
8.2.70.0060.00617.63
8.2.60.0070.00317.93
8.2.50.0060.00618.07
8.2.40.0060.00320.01
8.2.30.0030.00918.11
8.2.20.0030.00717.81
8.2.10.0040.00717.63
8.2.00.0090.00017.67
8.1.280.0320.00025.92
8.1.270.0240.00722.25
8.1.260.0090.00326.35
8.1.250.0060.00628.09
8.1.240.0070.00723.89
8.1.230.0080.00819.35
8.1.220.0080.00317.77
8.1.210.0070.00318.77
8.1.200.0040.00817.35
8.1.190.0060.00617.38
8.1.180.0080.00418.76
8.1.170.0120.00018.71
8.1.160.0030.00722.17
8.1.150.0100.00018.70
8.1.140.0090.00317.39
8.1.130.0070.00317.89
8.1.120.0070.00317.52
8.1.110.0040.00817.52
8.1.100.0000.01017.54
8.1.90.0060.00317.41
8.1.80.0070.00317.43
8.1.70.0050.00517.54
8.1.60.0110.00017.66
8.1.50.0070.00317.43
8.1.40.0070.00417.58
8.1.30.0070.00317.70
8.1.20.0030.00717.73
8.1.10.0110.00017.44
8.1.00.0090.00317.42
8.0.300.0070.00418.77
8.0.290.0070.00317.14
8.0.280.0040.00718.51
8.0.270.0030.00717.29
8.0.260.0080.00416.98
8.0.250.0000.01116.92
8.0.240.0030.00717.00
8.0.230.0090.00016.95
8.0.220.0030.00616.97
8.0.210.0030.00616.70
8.0.200.0030.00716.90
8.0.190.0060.00617.05
8.0.180.0070.00316.89
8.0.170.0090.00316.99
8.0.160.0030.00617.00
8.0.150.0090.00616.96
8.0.140.0040.00816.90
8.0.130.0040.00413.38
8.0.120.0040.00716.89
8.0.110.0070.00316.98
8.0.100.0030.00716.85
8.0.90.0030.00616.84
8.0.80.0100.01716.94
8.0.70.0030.00617.01
8.0.60.0050.00516.76
8.0.50.0030.00616.79
8.0.30.0270.02117.06
8.0.20.0230.02117.40
8.0.10.0000.01117.07
8.0.00.0250.02016.79
7.4.330.0030.00515.00
7.4.320.0100.00016.67
7.4.300.0000.01316.51
7.4.290.0100.00016.71
7.4.280.0110.00016.47
7.4.270.0070.00316.66
7.4.260.0070.00316.59
7.4.250.0030.00716.64
7.4.240.0030.00716.50
7.4.230.0030.00616.54
7.4.220.0100.01716.61
7.4.210.0130.01716.66
7.4.200.0000.00916.65
7.4.190.0030.00616.61
7.4.160.0240.01416.38
7.4.150.0310.01617.40
7.4.140.0240.01317.86
7.4.130.0220.02416.49
7.4.120.0200.02016.47
7.4.110.0180.02516.55
7.4.100.0160.02316.53
7.4.90.0240.02016.45
7.4.80.0150.02419.39
7.4.70.0130.01916.59
7.4.60.0230.01616.60
7.4.50.0100.00316.53
7.4.40.0160.00622.77
7.4.30.0170.02816.65
7.4.00.0110.00715.04
7.3.330.0000.00913.38
7.3.320.0040.00413.21
7.3.310.0090.00016.23
7.3.300.0030.00616.29
7.3.290.0130.02316.32
7.3.280.0130.02016.35
7.3.270.0180.02517.40
7.3.260.0270.01316.40
7.3.250.0130.02116.52
7.3.240.0200.02716.43
7.3.230.0220.01616.53
7.3.210.0280.01416.60
7.3.200.0220.01019.39
7.3.190.0150.02616.40
7.3.180.0140.01716.39
7.3.170.0200.02116.62
7.3.160.0170.01716.44
7.3.120.0040.01514.74
7.2.330.0210.01716.76
7.2.320.0140.01816.59
7.2.310.0210.01516.61
7.2.300.0260.01616.66
7.2.290.0280.00816.79
7.2.60.0070.01416.66
7.2.00.0060.01319.29
7.1.200.0070.00415.76
7.1.100.0060.01017.66
7.1.70.0200.01016.97
7.1.60.0190.01319.82
7.1.50.0070.02616.99
7.0.200.0220.00316.70

preferences:
40.14 ms | 400 KiB | 5 Q