3v4l.org

run code in 300+ PHP versions simultaneously
<?php $params = [ 'replace' => 'Iron Man', 'search' => 'Inevitable', 'subject' => 'I am Inevitable', ]; echo call_user_func_array('str_replace', $params);

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.40.0070.01021.74
8.3.30.0090.00618.71
8.3.20.0040.00424.18
8.3.10.0090.00423.22
8.3.00.0100.00322.47
8.2.170.0070.01018.83
8.2.160.0140.00022.96
8.2.150.0080.00025.66
8.2.140.0040.00922.58
8.2.130.0110.00223.28
8.2.120.0060.00722.55
8.2.110.0080.00620.59
8.2.100.0090.00618.19
8.2.90.0110.00618.17
8.2.80.0120.00618.26
8.2.70.0150.00317.95
8.2.60.0160.00217.90
8.2.50.0120.00717.89
8.2.40.0090.00818.11
8.2.30.0080.00518.06
8.2.20.0080.00518.12
8.2.10.0140.00418.51
8.2.00.0110.00618.44
8.1.270.0080.00623.09
8.1.260.0110.00325.10
8.1.250.0110.00025.15
8.1.240.0060.00620.56
8.1.230.0190.00217.92
8.1.220.0120.00518.06
8.1.210.0110.00618.21
8.1.200.0160.00317.79
8.1.190.0130.00517.79
8.1.180.0140.00217.94
8.1.170.0100.00518.10
8.1.160.0110.00418.24
8.1.150.0110.00318.15
8.1.140.0100.00518.25
8.1.130.0100.00417.86
8.1.120.0110.00417.79
8.1.110.0090.00617.73
8.1.100.0090.00517.78
8.1.90.0100.00417.70
8.1.80.0130.00217.74
8.1.70.0120.00217.74
8.1.60.0110.00717.77
8.1.50.0090.00517.84
8.1.40.0100.00517.80
8.1.30.0110.00517.91
8.1.20.0130.00117.87
8.1.10.0090.00617.87
8.1.00.0100.00617.80
8.0.300.0050.00418.04
8.0.290.0130.00417.24
8.0.280.0130.00418.42
8.0.270.0110.00217.76
8.0.260.0090.00717.29
8.0.250.0100.00517.42
8.0.240.0110.00517.37
8.0.230.0120.00317.34
8.0.220.0110.00417.30
8.0.210.0150.00217.20
8.0.200.0100.00517.30
8.0.190.0090.00617.37
8.0.180.0090.00517.39
8.0.170.0150.00217.31
8.0.160.0040.00617.32
8.0.150.0100.00317.23
8.0.140.0070.00617.28
8.0.130.0070.00516.33
8.0.120.0130.00417.31
8.0.110.0090.00517.34
8.0.100.0120.00617.29
8.0.90.0120.00517.29
8.0.80.0090.00817.16
8.0.70.0110.00317.27
8.0.60.0130.00417.33
8.0.50.0090.00317.31
8.0.30.0060.00617.43
8.0.20.0140.00517.47
8.0.10.0090.00217.46
8.0.00.0110.00817.80
7.4.330.0080.00115.56
7.4.320.0110.00517.11
7.4.300.0130.00417.15
7.4.290.0130.00717.01
7.4.280.0100.00517.02
7.4.270.0180.00217.08
7.4.260.0150.00516.00
7.4.250.0160.00317.00
7.4.240.0150.00717.02
7.4.230.0130.00917.07
7.4.220.0120.00616.92
7.4.210.0130.00916.88
7.4.200.0170.00517.05
7.4.190.0230.00317.29
7.4.180.0230.00717.39
7.4.160.0230.00617.45
7.4.150.0220.00817.40
7.4.140.0250.00517.41
7.4.130.0200.00717.03
7.4.120.0280.00417.09
7.4.110.0230.00616.97
7.4.100.0240.00617.05
7.4.90.0240.00917.03
7.4.80.0220.00916.92
7.4.70.0280.00217.04
7.4.60.0230.00717.02
7.4.50.0280.00616.97
7.4.40.0290.00317.03
7.4.30.0170.00917.03
7.4.20.0200.00416.95
7.4.10.0200.00417.10
7.4.00.0190.00717.06
7.3.330.0100.00616.87
7.3.320.0090.00615.81
7.3.310.0120.00416.85
7.3.300.0090.00617.04
7.3.290.0140.00216.85
7.3.280.0150.00617.24
7.3.270.0150.00517.22
7.3.260.0150.00716.99
7.3.250.0210.00316.92
7.3.240.0180.00617.03
7.3.230.0160.00616.97
7.3.220.0200.00616.99
7.3.210.0220.00316.97
7.3.200.0220.00516.84
7.3.190.0200.00616.84
7.3.180.0210.00416.90
7.3.170.0190.00617.15
7.3.160.0180.00716.98
7.3.150.0240.00616.87
7.3.140.0240.00816.91
7.3.130.0220.00716.92
7.3.120.0190.00516.88
7.3.110.0190.00616.90
7.3.100.0210.00416.88
7.3.90.0220.00416.96
7.3.80.0170.00716.84
7.3.70.0210.00816.95
7.3.60.0170.00716.79
7.3.50.0200.00417.03
7.3.40.0160.00716.96
7.3.30.0160.00916.99
7.3.20.0240.00516.84
7.3.10.0250.00716.95
7.3.00.0270.00616.94

preferences:
53.06 ms | 400 KiB | 5 Q