3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Me Amigo Moreno'; $text = str_replace(['Me'=>'My', 'Amigo'=>'Friend'], $text); echo $text;

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.0090.00616.38
8.3.50.0130.00722.09
8.3.40.0070.00718.84
8.3.30.0100.01018.63
8.3.20.0080.00020.21
8.3.10.0080.00023.67
8.3.00.0030.00619.38
8.2.180.0180.00318.29
8.2.170.0070.00722.96
8.2.160.0090.00620.39
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0090.00317.63
8.2.120.0040.00426.35
8.2.110.0090.00022.27
8.2.100.0070.00717.79
8.2.90.0040.00419.08
8.2.80.0080.00317.97
8.2.70.0000.00817.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0000.00719.38
8.2.30.0040.00420.59
8.2.20.0040.00417.63
8.2.10.0070.00017.98
8.2.00.0030.00518.10
8.1.280.0120.00625.92
8.1.270.0060.00321.96
8.1.260.0040.00428.09
8.1.250.0050.00228.09
8.1.240.0030.00622.48
8.1.230.0070.00417.66
8.1.220.0000.00917.76
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.13
8.1.180.0000.00718.10
8.1.170.0040.00418.66
8.1.160.0000.00821.94
8.1.150.0040.00418.86
8.1.140.0040.00419.57
8.1.130.0070.00017.54
8.1.120.0040.00417.38
8.1.110.0080.00017.27
8.1.100.0000.00717.29
8.1.90.0030.00317.38
8.1.80.0040.00417.24
8.1.70.0000.00717.38
8.1.60.0040.00417.50
8.1.50.0000.00917.49
8.1.40.0030.00517.51
8.1.30.0040.00417.55
8.1.20.0020.00517.48
8.1.10.0000.00817.50
8.1.00.0040.00417.49
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0070.00018.43
8.0.270.0070.00017.19
8.0.260.0030.00317.05
8.0.250.0080.00016.91
8.0.240.0040.00416.98
8.0.230.0070.00016.91
8.0.220.0060.00016.84
8.0.210.0040.00416.89
8.0.200.0000.00716.95
8.0.190.0040.00416.98
8.0.180.0030.00316.79
8.0.170.0040.00416.79
8.0.160.0030.00316.90
8.0.150.0030.00416.83
8.0.140.0040.00416.78
8.0.130.0030.00313.27
8.0.120.0050.00316.81
8.0.110.0080.00016.77
8.0.100.0000.00716.69
8.0.90.0060.00316.67
8.0.80.0080.01116.87
8.0.70.0060.00317.00
8.0.60.0050.00216.85
8.0.50.0050.00316.78
8.0.30.0060.01217.12
8.0.20.0100.00817.40
8.0.10.0050.00217.06
8.0.00.0090.00916.76
7.4.330.0030.00315.08
7.4.320.0060.00016.57
7.4.300.0030.00316.53
7.4.290.0040.00416.53
7.4.280.0000.00716.56
7.4.270.0000.00816.50
7.4.260.0030.00316.41
7.4.250.0000.00816.54
7.4.240.0050.00216.44
7.4.230.0000.00716.51
7.4.220.0130.01016.50
7.4.210.0090.01216.48
7.4.200.0000.00716.42
7.4.160.0090.00616.61
7.4.150.0070.01017.40
7.4.140.0130.01117.86
7.4.130.0150.00316.40
7.4.120.0080.00816.47
7.4.110.0070.01016.52
7.4.100.0130.00916.44
7.4.90.0150.00316.64
7.4.80.0070.01019.39
7.4.70.0040.01116.44
7.4.60.0060.01016.38
7.4.50.0060.00316.19
7.4.40.0100.00716.29
7.4.30.0090.00916.68
7.4.00.0030.00914.75
7.3.330.0060.00013.09
7.3.320.0030.00313.09
7.3.310.0070.00016.08
7.3.300.0040.00416.24
7.3.290.0000.00816.16
7.3.280.0100.00616.25
7.3.270.0170.00017.40
7.3.260.0140.00316.48
7.3.250.0100.01016.25
7.3.240.0130.00516.26
7.3.230.0050.01416.39
7.3.210.0140.00316.22
7.3.200.0080.01216.27
7.3.190.0090.00816.51
7.3.180.0090.00916.37
7.3.170.0140.00316.27
7.3.160.0130.00316.38
7.3.10.0090.00816.42
7.3.00.0110.00316.47
7.2.330.0110.00716.54
7.2.320.0150.00816.72
7.2.310.0090.00616.26
7.2.300.0070.01016.39
7.2.290.0130.00916.66
7.2.130.0070.00916.34
7.2.120.0080.00716.28
7.2.110.0120.01016.54
7.2.100.0150.00616.44
7.2.90.0080.00816.78
7.2.80.0090.01216.49
7.2.70.0080.01016.53
7.2.60.0020.01416.53
7.2.50.0120.01116.76
7.2.40.0120.00916.59
7.2.30.0040.01116.46
7.2.20.0080.00816.41
7.2.10.0070.00816.44
7.2.00.0070.00817.51
7.1.250.0050.00915.53
7.1.100.0070.00718.20
7.1.70.0060.00317.31
7.1.60.0040.01919.48
7.1.50.0130.01016.72
7.1.00.0030.07322.57
7.0.200.0360.00314.40
7.0.60.0130.06319.94
7.0.50.0070.08317.66
7.0.40.0170.07720.21
7.0.30.0130.07720.09
7.0.20.0330.07020.10
7.0.10.0070.09320.34
7.0.00.0030.08320.20
5.6.280.0070.05321.12
5.6.210.0070.03720.76
5.6.200.0130.07318.22
5.6.190.0100.07720.61
5.6.180.0300.05720.32
5.6.170.0200.06020.45
5.6.160.0030.07320.48
5.6.150.0070.08318.22
5.6.140.0070.08018.17
5.6.130.0030.05018.16
5.6.120.0100.07320.99
5.6.110.0170.07320.95
5.6.100.0070.08020.96
5.6.90.0000.08321.12
5.6.80.0030.08320.37
5.5.350.4230.04020.43
5.5.340.0130.07317.89
5.5.330.0030.08720.26
5.5.320.0270.07020.34
5.5.310.0230.08020.50
5.5.300.0030.04017.92
5.5.290.0000.05017.98
5.5.280.0070.03720.95
5.5.270.0000.04720.75
5.5.260.0130.04720.88
5.5.250.0130.07720.68
5.5.240.0030.08320.18

preferences:
51.92 ms | 401 KiB | 5 Q