3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "foo boo foo boo"; echo "$a\n"; $b = strtr($a, array("foo"=>"boo", "boo"=>"foo")); echo "$b\n";

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.20.0140.00717.57
8.4.10.0030.00917.63
8.3.150.0100.01017.02
8.3.140.0110.00017.05
8.3.130.0090.00918.38
8.3.120.0080.00018.68
8.3.110.0170.00020.94
8.3.100.0080.00024.06
8.3.90.0000.00826.77
8.3.80.0030.00618.06
8.3.70.0040.01116.24
8.3.60.0150.00816.63
8.3.50.0120.00822.05
8.3.40.0090.00918.62
8.3.30.0070.00719.02
8.3.20.0040.00420.13
8.3.10.0030.00623.48
8.3.00.0040.00419.13
8.2.270.0150.00416.48
8.2.260.0030.00616.46
8.2.250.0000.01616.46
8.2.240.0070.00016.88
8.2.230.0060.00322.58
8.2.220.0040.00437.54
8.2.210.0090.00926.77
8.2.200.0030.00618.30
8.2.190.0110.00416.58
8.2.180.0080.01518.54
8.2.170.0090.00622.96
8.2.160.0030.01020.48
8.2.150.0060.01224.18
8.2.140.0040.00424.66
8.2.130.0160.00326.16
8.2.120.0070.00022.20
8.2.110.0090.00020.51
8.2.100.0040.00817.62
8.2.90.0060.00318.20
8.2.80.0040.00418.03
8.2.70.0040.00417.63
8.2.60.0050.00317.63
8.2.50.0030.00617.55
8.2.40.0080.00018.16
8.2.30.0040.00417.92
8.2.20.0000.00817.72
8.2.10.0000.00819.88
8.2.00.0000.00817.84
8.1.310.0060.01018.56
8.1.300.0140.00418.24
8.1.290.0030.00618.88
8.1.280.0140.00725.92
8.1.270.0030.00623.87
8.1.260.0030.00528.09
8.1.250.0000.00728.09
8.1.240.0070.00322.00
8.1.230.0040.00820.97
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0050.00317.10
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0050.00221.99
8.1.150.0050.00218.56
8.1.140.0040.00418.79
8.1.130.0050.00217.75
8.1.120.0000.00717.46
8.1.110.0000.00817.37
8.1.100.0090.00117.40
8.1.90.0060.00617.33
8.1.80.0030.00917.29
8.1.70.0050.00717.38
8.1.60.0050.00817.51
8.1.50.0120.00117.36
8.1.40.0110.00317.38
8.1.30.0110.00317.49
8.1.20.0070.00617.56
8.1.10.0090.00417.48
8.1.00.0080.00517.42
8.0.300.0000.00720.04
8.0.290.0040.00416.75
8.0.280.0000.00718.31
8.0.270.0040.00416.73
8.0.260.0030.00316.75
8.0.250.0030.00316.96
8.0.240.0050.00316.98
8.0.230.0060.00516.94
8.0.220.0050.00616.87
8.0.210.0090.00316.84
8.0.200.0110.00016.94
8.0.190.0100.00316.87
8.0.180.0050.00716.77
8.0.170.0060.00516.81
8.0.160.0060.00416.80
8.0.150.0090.00316.78
8.0.140.0040.00716.75
8.0.130.0090.00115.03
8.0.120.0110.00116.84
8.0.110.0090.00216.85
8.0.100.0070.00416.70
8.0.90.0100.00116.89
8.0.80.0070.00816.90
8.0.70.0090.00216.85
8.0.60.0050.00616.73
8.0.50.0070.00516.71
8.0.30.0110.00616.87
8.0.20.0060.01017.23
8.0.10.0070.00516.92
8.0.00.0080.00916.88
7.4.330.0050.00015.00
7.4.320.0000.00616.48
7.4.300.0050.00616.51
7.4.290.0060.00816.50
7.4.280.0110.00216.44
7.4.270.0070.00516.52
7.4.260.0070.00516.44
7.4.250.0100.00316.43
7.4.240.0070.00416.41
7.4.230.0060.00616.49
7.4.220.0100.00716.56
7.4.210.0100.00516.44
7.4.200.0090.00216.46
7.4.190.0070.00416.48
7.4.180.0060.00816.48
7.4.160.0090.01016.50
7.4.150.0100.00716.83
7.4.140.0110.00617.31
7.4.130.0100.00716.38
7.4.120.0100.00616.37
7.4.110.0140.00216.45
7.4.100.0090.00816.36
7.4.90.0110.00416.21
7.4.80.0060.00917.89
7.4.70.0100.00416.41
7.4.60.0090.00416.31
7.4.50.0040.00616.33
7.4.40.0060.00719.53
7.4.30.0090.00516.34
7.4.20.0070.00216.45
7.4.10.0080.00416.35
7.4.00.0070.00515.74
7.3.330.0080.00114.46
7.3.320.0080.00414.64
7.3.310.0080.00316.14
7.3.300.0090.00216.08
7.3.290.0070.00716.16
7.3.280.0070.01016.22
7.3.270.0100.00616.86
7.3.260.0130.00316.14
7.3.250.0100.00716.25
7.3.240.0140.00616.30
7.3.230.0110.00516.26
7.3.220.0090.00515.93
7.3.210.0090.00816.17
7.3.200.0070.01017.75
7.3.190.0110.00816.18
7.3.180.0080.00816.12
7.3.170.0090.00616.37
7.3.160.0110.00516.23
7.3.150.0140.00015.96
7.3.140.0150.00016.11
7.3.130.0090.00616.20
7.3.120.0110.00415.38
7.3.110.0100.00515.98
7.3.100.0090.00816.00
7.3.90.0050.00916.41
7.3.80.0070.00716.19
7.3.70.0090.00616.37
7.3.60.0070.00716.16
7.3.50.0140.00016.41
7.3.40.0120.00316.34
7.3.30.0050.01016.27
7.3.20.0120.00316.45
7.3.10.0260.00415.67
7.3.00.0220.00315.78
7.2.340.0110.00416.35
7.2.330.0150.00216.37
7.2.320.0140.00216.34
7.2.310.0070.01116.36
7.2.300.0110.00516.26
7.2.290.0100.00716.38
7.2.280.0110.00416.24
7.2.270.0130.00316.10
7.2.260.0050.01016.18
7.2.250.0110.00416.21
7.2.240.0110.00316.13
7.2.230.0110.00316.25
7.2.220.0110.00416.32
7.2.210.0080.00716.36
7.2.200.0100.00716.21
7.2.190.0100.00416.48
7.2.180.0170.00016.52
7.2.170.0120.00216.61
7.2.160.0140.00016.26
7.2.150.0050.01016.45
7.2.140.0080.00616.46
7.2.130.0330.00616.10
7.2.120.0270.00316.05
7.2.110.0240.00715.82
7.2.100.0230.00616.06
7.2.90.0270.00415.97
7.2.80.0260.00716.19
7.2.70.0430.00515.97
7.2.60.0230.00916.07
7.2.50.0250.00515.86
7.2.40.0270.00216.06
7.2.30.0240.00416.00
7.2.20.0290.00715.98
7.2.10.0400.00815.84
7.2.00.0240.00315.92
7.1.330.0140.00015.41
7.1.320.0100.00515.57
7.1.310.0110.00315.57
7.1.300.0090.00615.73
7.1.290.0080.00715.32
7.1.280.0110.00415.48
7.1.270.0090.00615.38
7.1.260.0050.01015.56
7.1.250.0250.00514.92
7.1.240.0310.00914.76
7.1.230.0320.00214.80
7.1.220.0320.00714.81
7.1.210.0260.00714.76
7.1.200.0200.00415.07
7.1.190.0280.00714.86
7.1.180.0430.00914.69
7.1.170.0390.00814.64
7.1.160.0350.00614.46
7.1.150.0330.00614.54
7.1.140.0380.00814.59
7.1.130.0430.00414.62
7.1.120.0290.00514.56
7.1.110.0400.00614.57
7.1.100.0420.00214.74
7.1.90.0270.00614.49
7.1.80.0350.00514.58
7.1.70.0260.00315.44
7.1.60.0330.00916.32
7.1.50.0600.00515.28
7.1.40.0420.00514.64
7.1.30.0460.00914.56
7.1.20.0360.00314.63
7.1.10.0350.00814.75
7.1.00.0250.02717.14
7.0.330.0390.00414.29
7.0.320.0290.00914.26
7.0.310.0280.00614.31
7.0.300.0400.00314.36
7.0.290.0430.00414.22
7.0.280.0420.00214.33
7.0.270.0380.00514.34
7.0.260.0300.00514.31
7.0.250.0550.00314.32
7.0.240.0310.00314.34
7.0.230.0310.01014.44
7.0.220.0350.00814.33
7.0.210.0290.00314.56
7.0.200.0310.00415.10
7.0.190.0310.00514.36
7.0.180.0400.00114.37
7.0.170.0420.00514.28
7.0.160.0310.01114.31
7.0.150.0350.00714.31
7.0.140.0280.02416.91
7.0.130.0340.00514.38
7.0.120.0340.00314.46
7.0.110.0310.00514.19
7.0.100.0250.00714.31
7.0.90.0310.00614.29
7.0.80.0350.00314.24
7.0.70.0240.02716.73
7.0.60.0190.02916.77
7.0.50.0250.02716.86
7.0.40.0300.03116.19
7.0.30.0260.02716.30
7.0.20.0320.02716.24
7.0.10.0210.03316.17
7.0.00.0250.03216.29
5.6.400.0090.00515.61
5.6.390.0060.00615.71
5.6.380.0060.00915.01
5.6.370.0110.00414.98
5.6.360.0120.00615.16
5.6.350.0070.01415.16
5.6.340.0130.00215.00
5.6.330.0160.00815.13
5.6.320.0150.00415.04
5.6.310.0110.00615.15
5.6.300.0090.01114.98
5.6.290.0160.00614.99
5.6.280.0120.02716.97
5.6.270.0100.00615.10
5.6.260.0120.01115.03
5.6.250.0130.00715.04
5.6.240.0140.00915.04
5.6.230.0130.00315.12
5.6.220.0090.03116.81
5.6.210.0090.03216.77
5.6.200.0120.02917.11
5.6.190.0060.02717.07
5.6.180.0060.03217.13
5.6.170.0100.03317.14
5.6.160.0090.02317.02
5.6.150.0090.03316.99
5.6.140.0090.02916.98
5.6.130.0110.03216.89
5.6.120.0060.02816.90
5.6.110.0150.02917.05
5.6.100.0110.02617.02
5.6.90.0140.02917.00
5.6.80.0070.02016.80
5.6.70.0110.01916.84
5.6.60.0080.02316.74
5.6.50.0100.02316.80
5.6.40.0090.02816.76
5.6.30.0110.02716.81
5.6.20.0060.02616.78
5.6.10.0080.01916.84
5.6.00.0080.02916.76
5.5.380.0120.00613.44
5.5.370.0100.00713.46
5.5.360.0080.02715.61
5.5.350.0080.03315.68
5.5.340.0060.02615.84
5.5.330.0090.02815.87
5.5.320.0090.03215.92
5.5.310.0080.02915.88
5.5.300.0090.02815.94
5.5.290.0060.03315.97
5.5.280.0100.01715.87
5.5.270.0130.01415.96
5.5.260.0110.03115.90
5.5.250.0110.03115.67
5.5.240.0080.02015.73
5.5.230.0080.02315.58
5.5.220.0100.02615.64
5.5.210.0080.03015.59
5.5.200.0060.03215.62
5.5.190.0080.03315.45
5.5.180.0070.03115.56
5.5.170.0130.00113.19
5.5.160.0070.01915.59
5.5.150.0100.02315.58
5.5.140.0060.03115.54
5.5.130.0060.03015.54
5.5.120.0060.02215.49
5.5.110.0100.02815.49
5.5.100.0080.03015.55
5.5.90.0080.02015.39
5.5.80.0130.02715.73
5.5.70.0080.02615.59
5.5.60.0100.02615.57
5.5.50.0120.02515.45
5.5.40.0050.03115.56
5.5.30.0090.02715.49
5.5.20.0130.02415.57
5.5.10.0110.02615.51
5.5.00.0080.02915.63
5.4.450.0100.02214.37
5.4.440.0100.01514.29
5.4.430.0050.02814.13
5.4.420.0070.02914.29
5.4.410.0100.02214.06
5.4.400.0060.02714.32
5.4.390.0050.02614.17
5.4.380.0060.02414.16
5.4.370.0070.02513.99
5.4.360.0090.02714.01
5.4.350.0090.02614.23
5.4.340.0060.02314.07
5.4.330.0060.00611.72
5.4.320.0060.02914.26
5.4.310.0080.02614.16
5.4.300.0030.02214.15
5.4.290.0090.01714.25
5.4.280.0050.03114.08
5.4.270.0060.02814.04
5.4.260.0080.02714.20
5.4.250.0070.02914.05
5.4.240.0090.02614.10
5.4.230.0110.02114.00
5.4.220.0080.02814.02
5.4.210.0090.02713.92
5.4.200.0060.02513.96
5.4.190.0050.02914.13
5.4.180.0070.02414.14
5.4.170.0080.02314.00
5.4.160.0090.02513.98
5.4.150.0100.02314.08
5.4.140.0080.02713.26
5.4.130.0040.02713.17
5.4.120.0060.02713.28
5.4.110.0060.02413.28
5.4.100.0090.01813.28
5.4.90.0030.02813.33
5.4.80.0020.02113.18
5.4.70.0070.03013.23
5.4.60.0110.02313.32
5.4.50.0090.01713.18
5.4.40.0070.02213.33
5.4.30.0020.03013.35
5.4.20.0060.02713.25
5.4.10.0080.02813.19
5.4.00.0090.02313.10
5.3.290.0070.02712.76
5.3.280.0080.02712.60
5.3.270.0070.02312.71
5.3.260.0060.03012.61
5.3.250.0090.02312.68
5.3.240.0060.02512.56
5.3.230.0050.02812.67
5.3.220.0070.02412.51
5.3.210.0060.02712.56
5.3.200.0110.02412.59
5.3.190.0060.01912.63
5.3.180.0100.01712.56
5.3.170.0050.02312.76
5.3.160.0070.02812.70
5.3.150.0070.02912.72
5.3.140.0070.02612.54
5.3.130.0080.02812.57
5.3.120.0070.02812.56
5.3.110.0090.02812.52
5.3.100.0050.03012.47
5.3.90.0030.02812.49
5.3.80.0070.02512.28
5.3.70.0080.02012.30
5.3.60.0060.02212.39
5.3.50.0050.02412.41
5.3.40.0100.02312.26
5.3.30.0100.02512.35
5.3.20.0100.02312.32
5.3.10.0080.02412.14
5.3.00.0030.02912.19

preferences:
29.44 ms | 403 KiB | 5 Q