3v4l.org

run code in 300+ PHP versions simultaneously
<?php function clean_link($a) { return "change"; } function run($str) { $eval_links = '$link = clean_link("$0")'; return preg_replace_callback('{tst}i',function ($matches) use ($eval_links) { return $link = clean_link($matches[0]); },$str); } echo run('test');

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.5.30.0110.00719.37
8.5.20.0110.00819.39
8.5.10.0100.00720.18
8.5.00.0110.01020.29
8.4.180.0160.00619.78
8.4.170.0130.01020.24
8.4.160.0150.00721.84
8.4.150.0020.00114.05
8.4.140.0160.01117.50
8.4.130.0090.01118.73
8.4.120.0120.00917.74
8.4.110.0110.00819.05
8.4.100.0040.00618.05
8.4.90.0110.01018.76
8.4.80.0070.00218.04
8.4.70.0140.00717.76
8.4.60.0110.01018.92
8.4.50.0100.01017.83
8.4.40.0120.00319.81
8.4.30.0060.01320.41
8.4.20.0090.00922.40
8.4.10.0050.00523.68
8.3.300.0100.01020.88
8.3.290.0130.00920.95
8.3.280.0120.00818.63
8.3.270.0100.01016.85
8.3.260.0120.00816.92
8.3.250.0140.00516.64
8.3.240.0070.00917.17
8.3.230.0040.00516.79
8.3.220.0080.00717.14
8.3.210.0110.00816.79
8.3.200.0100.00216.93
8.3.190.0120.00817.04
8.3.180.0030.00618.74
8.3.170.0070.01119.01
8.3.160.0040.01418.50
8.3.150.0090.00920.64
8.3.140.0040.00416.67
8.3.130.0030.00516.76
8.3.120.0090.00018.95
8.3.110.0120.00920.94
8.3.100.0070.01124.06
8.3.90.0030.00526.77
8.3.80.0030.00616.75
8.3.70.0150.00416.75
8.3.60.0070.01018.55
8.3.50.0140.00320.28
8.3.40.0100.01020.04
8.3.30.0120.00318.82
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.300.0100.01022.27
8.2.290.0080.01020.49
8.2.280.0080.00720.31
8.2.270.0120.00619.02
8.2.260.0070.01118.50
8.2.250.0000.01016.83
8.2.240.0000.00818.90
8.2.230.0050.00322.58
8.2.220.0000.00837.54
8.2.210.0040.01126.77
8.2.200.0000.01118.41
8.2.190.0110.00416.58
8.2.180.0140.00325.92
8.2.170.0100.00718.82
8.2.160.0110.00322.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0030.00720.43
8.2.100.0060.00320.53
8.1.340.0150.00621.66
8.1.330.0120.00622.21
8.1.320.0100.00916.13
8.1.310.0130.00616.99
8.1.300.0060.00318.07
8.1.290.0060.00318.88
8.1.280.0070.00725.92
8.1.270.0050.00324.66
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0080.00318.75
8.1.230.0060.00318.74
5.5.380.0030.00316.80

preferences:
32 ms | 475 KiB | 5 Q