3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "abcbca"; echo strtr($string, array('a' => 'b', 'b' => 'a'));

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.0100.00018.92
8.4.10.0090.00017.48
8.3.150.0060.00318.67
8.3.140.0030.00616.50
8.3.130.0080.00016.39
8.3.120.0030.00620.61
8.3.110.0040.00416.40
8.3.100.0040.01116.76
8.3.90.0040.00418.01
8.3.80.0110.00019.36
8.3.70.0090.00618.18
8.3.60.0040.01616.63
8.3.50.0080.00618.15
8.3.40.0110.00418.66
8.3.30.0040.01118.45
8.3.20.0000.00821.80
8.3.10.0070.00021.60
8.3.00.0080.00020.88
8.2.270.0120.00616.95
8.2.260.0040.00416.33
8.2.250.0030.00616.33
8.2.240.0040.00417.02
8.2.230.0060.00322.58
8.2.220.0030.00624.06
8.2.210.0080.00026.77
8.2.200.0040.00418.88
8.2.190.0070.00720.14
8.2.180.0140.00418.41
8.2.170.0070.00722.96
8.2.160.0080.00522.96
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0050.00319.39
8.2.120.0040.00426.35
8.2.110.0060.00320.41
8.2.100.0080.00417.78
8.2.90.0050.00319.48
8.2.80.0080.00018.69
8.2.70.0000.00817.50
8.2.60.0030.00617.80
8.2.50.0030.00618.07
8.2.40.0050.00318.15
8.2.30.0000.00817.98
8.2.20.0000.00817.98
8.2.10.0040.00419.16
8.2.00.0000.00819.27
8.1.310.0120.00616.74
8.1.300.0040.00418.56
8.1.290.0060.00330.84
8.1.280.0000.01825.92
8.1.270.0060.00318.83
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0060.00322.05
8.1.230.0070.00422.11
8.1.220.0050.00317.77
8.1.210.0000.00818.89
8.1.200.0040.00717.23
8.1.190.0040.00417.10
8.1.180.0030.00619.31
8.1.170.0060.00318.65
8.1.160.0070.00018.84
8.1.150.0040.00418.69
8.1.140.0040.00422.05
8.1.130.0000.00917.28
8.1.120.0040.00417.33
8.1.110.0000.00717.40
8.1.100.0060.00317.38
8.1.90.0000.00817.29
8.1.80.0070.00017.40
8.1.70.0040.00417.34
8.1.60.0000.00917.50
8.1.50.0080.00017.37
8.1.40.0000.00817.39
8.1.30.0080.00017.53
8.1.20.0030.00617.43
8.1.10.0060.00317.48
8.1.00.0040.00417.31
8.0.300.0000.00820.08
8.0.290.0000.00916.75
8.0.280.0030.00318.39
8.0.270.0000.00717.28
8.0.260.0000.00716.84
8.0.250.0070.00017.02
8.0.240.0000.00816.95
8.0.230.0030.00316.88
8.0.220.0030.00616.68
8.0.210.0040.00416.70
8.0.200.0000.00716.80
8.0.190.0040.00416.86
8.0.180.0030.00416.77
8.0.170.0040.00416.82
8.0.160.0070.00016.79
8.0.150.0040.00716.58
8.0.140.0040.00416.73
8.0.130.0000.00513.17
8.0.120.0040.00416.78
8.0.110.0040.00416.71
8.0.100.0040.00416.71
8.0.90.0040.00416.65
8.0.80.0130.00616.71
8.0.70.0000.00716.70
8.0.60.0070.00016.70
8.0.50.0000.00716.81
8.0.30.0090.01217.25
8.0.20.0110.00817.40
8.0.10.0030.00316.75
8.0.00.0090.00916.79
7.4.330.0040.00015.55
7.4.320.0030.00316.40
7.4.300.0050.00316.37
7.4.290.0000.00716.51
7.4.280.0110.00016.52
7.4.270.0030.00516.53
7.4.260.0040.00416.49
7.4.250.0000.00716.43
7.4.240.0080.00016.50
7.4.230.0000.00816.52
7.4.220.0060.00316.54
7.4.210.0100.00516.37
7.4.200.0080.00016.23
7.4.160.0050.01016.41
7.4.140.0100.00917.86
7.4.130.0170.00316.29
7.4.120.0060.01416.51
7.4.110.0070.01016.36
7.4.100.0090.00916.34
7.4.90.0110.00716.50
7.4.80.0120.00717.39
7.4.70.0140.00816.36
7.4.60.0140.00816.37
7.4.50.0090.00916.38
7.4.40.0110.00616.37
7.4.30.0160.00616.41
7.4.20.0120.01016.28
7.4.10.0110.01016.49
7.4.00.0080.01115.60
7.3.330.0050.00012.88
7.3.320.0000.00613.04
7.3.310.0070.00015.95
7.3.300.0040.00415.96
7.3.290.0030.00315.96
7.3.280.0070.01016.12
7.3.260.0100.01416.32
7.3.240.0110.00816.31
7.3.230.0120.00416.20
7.3.210.0130.00316.25
7.3.200.0140.00716.15
7.3.190.0090.01516.26
7.3.180.0090.01216.27
7.3.170.0100.01016.27
7.3.160.0140.00516.30
7.3.150.0090.01316.27
7.3.140.0120.01016.37
7.3.130.0090.01116.10
7.3.120.0090.01015.54
7.3.110.0120.00815.56
7.3.100.0050.01215.47
7.3.90.0080.00815.41
7.3.80.0110.00815.49
7.3.70.0110.00615.54
7.3.60.0080.00815.47
7.3.50.0080.00915.51
7.3.40.0110.00615.41
7.3.30.0080.01015.43
7.3.20.0110.00716.42
7.3.10.0120.00516.35
7.3.00.0210.00815.80
7.2.330.0060.01216.19
7.2.320.0180.00416.55
7.2.310.0110.00716.48
7.2.300.0100.00816.41
7.2.290.0110.00916.40
7.2.280.0110.01016.39
7.2.270.0120.00916.42
7.2.260.0150.00816.47
7.2.250.0080.01315.72
7.2.240.0090.01115.71
7.2.230.0110.00815.78
7.2.220.0090.00815.66
7.2.210.0080.00915.56
7.2.200.0080.01015.63
7.2.190.0100.00815.54
7.2.180.0110.00615.63
7.2.170.0100.00915.59
7.2.160.0050.01015.84
7.2.150.0130.00716.64
7.2.140.0120.00916.62
7.2.130.0230.00715.86
7.2.120.0240.01015.84
7.2.110.0270.01015.80
7.2.100.0200.01215.87
7.2.90.0220.00715.99
7.2.80.0260.01015.84
7.2.70.0260.00515.85
7.2.60.0220.01015.77
7.2.50.0230.00615.88
7.2.40.0180.00815.87
7.2.30.0150.00615.82
7.2.20.0240.00915.71
7.2.10.0210.00815.83
7.2.00.0150.01015.90
7.1.330.0140.01015.58
7.1.320.0120.00915.58
7.1.310.0130.00815.57
7.1.300.0140.00815.62
7.1.290.0130.01015.58
7.1.280.0110.01015.54
7.1.270.0110.01115.56
7.1.260.0170.00615.66
7.1.250.0270.00814.85
7.1.240.0150.01315.53
7.1.230.0220.00915.46
7.1.220.0180.01015.38
7.1.210.0350.01115.45
7.1.200.0140.01315.38
7.1.190.0190.01215.50
7.1.180.0290.00715.38
7.1.170.0200.00815.49
7.1.160.0210.00615.39
7.1.150.0200.01015.52
7.1.140.0240.00615.49
7.1.130.0190.01015.52
7.1.120.0170.00715.36
7.1.110.0150.01215.48
7.1.100.0130.00915.38
7.1.90.0150.00815.40
7.1.80.0170.00615.50
7.1.70.0120.01015.45
7.1.60.0150.00715.54
7.1.50.0150.00815.37
7.1.40.0130.00915.40
7.1.30.0150.00615.39
7.1.20.0140.00815.41
7.1.10.0120.01115.37
7.1.00.0130.01115.38
7.0.330.0210.00715.12
7.0.320.0160.01115.08
7.0.310.0240.00915.23
7.0.300.0230.00515.09
7.0.290.0230.00315.09
7.0.280.0190.00814.93
7.0.270.0320.01015.20
7.0.260.0190.00615.13
7.0.250.0200.00515.25
7.0.240.0150.00515.11
7.0.230.0120.01015.30
7.0.220.0150.00815.07
7.0.210.0180.00515.12
7.0.200.0180.00315.13
7.0.190.0230.00415.18
7.0.180.0150.00715.11
7.0.170.0140.00715.18
7.0.160.0110.01015.29
7.0.150.0120.01115.22
7.0.140.0110.01315.28
7.0.130.0170.00315.06
7.0.120.0110.01115.19
7.0.110.0120.00815.03
7.0.100.0130.00815.17
7.0.90.0160.00915.27
7.0.80.0210.00615.14
7.0.70.0180.01515.21
7.0.60.0160.00915.15
7.0.50.0150.00915.14
7.0.40.0120.00915.13
7.0.30.0110.01215.04
7.0.20.0190.00615.16
7.0.10.0200.00815.12
7.0.00.0170.00815.22

preferences:
28.79 ms | 403 KiB | 5 Q