3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace App\Function; function str_repeat() { return __FUNCTION__; } $filter = 'str_repeat'; echo $filter('a', 10) . PHP_EOL; $filter = '\str_repeat'; echo $filter('a', 10) . PHP_EOL; $filter = 'App\Function\str_repeat'; echo $filter('a', 10) . PHP_EOL;

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.0130.00817.77
8.4.130.0060.00218.02
8.4.120.0130.00720.30
8.4.110.0120.00822.29
8.4.100.0080.00417.57
8.4.90.0130.00817.70
8.4.80.0120.00719.71
8.4.70.0160.00517.63
8.4.60.0140.00717.61
8.4.50.0080.01318.36
8.4.40.0070.01117.57
8.4.30.0120.00622.04
8.4.20.0060.00317.83
8.4.10.0110.00822.19
8.3.270.0110.00816.45
8.3.260.0110.00816.39
8.3.250.0090.00918.88
8.3.240.0080.00916.34
8.3.230.0090.01016.55
8.3.220.0100.00916.63
8.3.210.0140.00516.63
8.3.200.0090.01116.71
8.3.190.0100.01017.08
8.3.180.0120.00218.60
8.3.170.0090.00916.97
8.3.160.0100.00717.00
8.3.150.0120.00616.51
8.3.140.0080.00016.83
8.3.130.0000.01018.41
8.3.120.0090.00018.88
8.3.110.0080.00020.94
8.3.100.0040.00416.64
8.3.90.0050.00326.77
8.3.80.0060.00317.97
8.3.70.0090.00618.43
8.3.60.0160.00318.55
8.3.50.0120.00816.53
8.3.40.0140.00022.06
8.3.30.0070.01119.17
8.3.20.0170.00024.18
8.3.10.0090.00924.66
8.3.00.0050.00326.16
8.2.290.0130.00620.22
8.2.280.0120.01116.61
8.2.270.0140.00418.55
8.2.260.0070.01117.31
8.2.250.0040.00418.25
8.2.240.0090.00018.82
8.2.230.0080.00022.58
8.2.220.0060.00324.06
8.2.210.0070.00726.77
8.2.200.0060.00316.38
8.2.190.0150.00718.03
8.2.180.0150.00616.34
8.2.170.0110.00618.96
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0140.00326.16
8.2.120.0040.00422.24
8.2.110.0120.00920.96
8.2.100.0080.00417.66
8.2.90.0310.00617.63
8.2.80.0310.00317.50
8.2.70.0230.01017.00
8.2.60.0270.00317.50
8.2.50.0340.00017.25
8.2.40.0240.00617.38
8.2.30.0270.00217.38
8.2.20.0210.00717.13
8.2.10.0170.01017.38
8.2.00.0190.00717.35
8.1.330.0090.01220.23
8.1.320.0100.00815.94
8.1.310.0040.00416.88
8.1.300.0110.00816.04
8.1.290.0000.01130.84
8.1.280.0110.00725.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0060.00322.59
8.1.230.0120.00020.89
8.1.220.0210.00617.24
8.1.210.0180.00917.13
8.1.200.0250.00317.00
8.1.190.0270.00316.88
8.1.180.0180.00817.00
8.1.170.0190.00817.13
8.1.160.0230.00416.88
8.1.150.0150.01217.00
8.1.140.0230.00317.25
8.1.130.0250.00417.00
8.1.120.0240.00417.13
8.1.110.0160.01117.23
8.1.100.0210.00717.09
8.1.90.0200.01017.13
8.1.80.0210.00616.98
8.1.70.0240.00317.25
8.1.60.0240.00317.37
8.1.50.0230.00317.25
8.1.40.0180.00917.25
8.1.30.0180.00917.25
8.1.20.0190.00817.00
8.1.10.0190.00817.23
8.1.00.0200.00817.25
8.0.300.0180.01216.80
8.0.290.0280.00016.80
8.0.280.0220.00516.80
8.0.270.0250.00616.80
8.0.260.0280.00316.80
8.0.250.0210.01116.80
8.0.240.0220.00616.80
8.0.230.0210.00616.80
8.0.220.0220.00416.80
8.0.210.0280.00016.80
8.0.200.0180.01016.80
8.0.190.0240.00516.80
8.0.180.0240.00316.80
8.0.170.0280.00016.80
8.0.160.0250.00316.80
8.0.150.0200.00716.80
8.0.140.0240.00316.80
8.0.130.0250.00416.80
8.0.120.0210.00816.80
8.0.110.0250.00016.80
8.0.100.0250.00316.80
8.0.90.0240.00716.80
8.0.80.0270.00016.80
8.0.70.0240.00416.80
8.0.60.0240.00316.80
8.0.50.0200.00616.80
8.0.30.0230.00316.80
8.0.20.0250.00216.80
8.0.10.0200.00816.80

preferences:
99.35 ms | 403 KiB | 5 Q