3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'ac'; $b = str_replace('a', 'b', $a); $c = str_replace('c', 'd', $b); print "$a:$b:$c\n"; $a = 'ac'; $b = str_replace(['a', 'c'], ['b', 'd'], $a); print "$a:$b:$c\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.3.60.0070.00718.15
8.3.50.0030.01316.27
8.3.40.0110.00418.63
8.3.30.0120.00918.49
8.3.20.0000.00720.34
8.3.10.0040.00421.80
8.3.00.0000.00719.68
8.2.180.0100.01016.75
8.2.170.0000.01522.96
8.2.160.0090.00918.78
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00419.21
8.2.120.0050.00326.35
8.2.110.0060.00320.53
8.2.100.0080.00417.78
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0100.00017.50
8.2.60.0040.00418.04
8.2.50.0050.00318.10
8.2.40.0040.00420.61
8.2.30.0050.00219.22
8.2.20.0050.00317.98
8.2.10.0040.00418.18
8.2.00.0040.00418.15
8.1.280.0140.00325.92
8.1.270.0070.00022.18
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0000.01020.80
8.1.230.0040.00719.17
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0030.00616.88
8.1.190.0060.00317.10
8.1.180.0080.00018.10
8.1.170.0000.00818.55
8.1.160.0070.00018.97
8.1.150.0030.00618.82
8.1.140.0040.00419.56
8.1.130.0040.00418.75
8.1.120.0040.00417.45
8.1.110.0040.00417.27
8.1.100.0040.00417.30
8.1.90.0000.00817.28
8.1.80.0000.00717.39
8.1.70.0070.00017.36
8.1.60.0000.00817.56
8.1.50.0000.00817.29
8.1.40.0040.00417.48
8.1.30.0030.00517.57
8.1.20.0090.00017.54
8.1.10.0030.00617.48
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0050.00218.46
8.0.270.0000.00717.27
8.0.260.0030.00316.82
8.0.250.0070.00016.95
8.0.240.0000.00816.85
8.0.230.0080.00016.91
8.0.220.0040.00416.82
8.0.210.0070.00016.93
8.0.200.0030.00316.94
8.0.190.0030.00616.92
8.0.180.0040.00416.93
8.0.170.0040.00416.81
8.0.160.0040.00416.78
8.0.150.0030.00316.90
8.0.140.0030.00516.89
8.0.130.0000.00513.32
8.0.120.0040.00416.91
8.0.110.0030.00316.82
8.0.100.0000.00716.95
8.0.90.0000.00716.86
8.0.80.0060.01216.92
8.0.70.0040.00416.93
8.0.60.0040.00416.76
8.0.50.0080.00016.76
8.0.30.0100.00817.00
8.0.20.0100.00917.40
8.0.10.0060.00316.98
8.0.00.0100.00716.72
7.4.330.0000.00515.55
7.4.320.0060.00016.41
7.4.300.0000.00616.53
7.4.290.0060.00316.44
7.4.280.0050.00216.48
7.4.270.0030.00316.44
7.4.260.0040.00716.35
7.4.250.0030.00316.41
7.4.240.0050.00316.54
7.4.230.0040.00416.52
7.4.220.0140.00416.39
7.4.210.0030.01716.64
7.4.200.0030.00316.32
7.4.160.0120.00716.48
7.4.150.0060.01217.40
7.4.140.0110.01217.86
7.4.130.0120.00616.40
7.4.120.0110.01016.49
7.4.110.0080.00816.35
7.4.100.0140.00616.35
7.4.90.0060.01216.61
7.4.80.0110.00619.39
7.4.70.0070.00916.34
7.4.60.0100.00616.51
7.4.50.0060.01216.24
7.4.40.0040.01216.43
7.4.30.0070.01016.65
7.4.00.0090.00315.12
7.3.330.0000.00613.20
7.3.320.0050.00013.00
7.3.310.0070.00016.13
7.3.300.0030.00316.13
7.3.290.0090.00416.20
7.3.280.0070.01016.25
7.3.270.0100.01417.40
7.3.260.0130.00516.38
7.3.250.0060.01116.23
7.3.240.0110.00816.41
7.3.230.0100.00716.46
7.3.210.0030.01316.39
7.3.200.0030.02016.27
7.3.190.0100.00616.43
7.3.180.0120.00616.53
7.3.170.0040.01216.19
7.3.160.0070.01016.23
7.2.330.0140.00316.58
7.2.320.0090.00616.25
7.2.310.0130.00316.55
7.2.300.0060.01216.55
7.2.290.0080.00816.50
7.2.60.0080.00316.88
7.2.00.0040.00719.29
7.1.200.0050.00515.64
7.1.100.0090.00017.90
7.1.70.0070.01317.07
7.1.60.0450.01133.30
7.1.50.0430.02232.82
7.1.40.0610.01932.43
7.1.30.0450.01732.49
7.1.20.0290.02034.68
7.1.10.0210.01014.73
7.1.00.0160.01314.94
7.0.200.0180.01815.13
7.0.190.0100.00916.64
7.0.180.0230.01416.12
7.0.170.0260.01316.30
7.0.160.0280.01014.29
7.0.150.0270.00916.28
7.0.140.0060.01216.22
7.0.130.0250.01214.79
7.0.120.0230.01414.59
7.0.110.0050.01716.38
7.0.100.0070.01316.23
7.0.90.0110.01116.25
7.0.80.0300.01516.28
7.0.70.0120.00916.23
7.0.60.0240.02016.01
7.0.50.0310.01716.44
7.0.40.0040.01216.64
7.0.30.0300.00814.60
7.0.20.0210.01314.69
7.0.10.0090.01316.50
7.0.00.0300.01114.55

preferences:
46.66 ms | 400 KiB | 5 Q