3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '<p>Clashes broke out at one refinery on Tuesday when police broke up a blockade in Marseille. Workers at a large oil terminal in the port of Le Havre were due to go on strike on Thursday to block imports.Transport Minister Alain Vidalies said 40% of petrol stations around Paris were struggling to get fuel.Motorists have been panic-buying to avoid shortages.</p>'; $find="Transport Minister Alain Vidalies"; echo $pos=strpos($content, $find); $added_text = 'Honorable '; echo $newstr = substr_replace($content,$added_text,$pos, 0);

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.5.00.0110.01119.87
8.4.150.0010.00114.05
8.4.140.0260.00717.41
8.4.130.0110.00919.46
8.4.120.0050.00520.29
8.4.110.0120.00822.15
8.4.100.0070.00317.63
8.4.90.0150.00617.54
8.4.80.0050.00417.75
8.4.70.0100.00417.63
8.4.60.0080.00720.29
8.4.50.0120.00919.39
8.4.40.0100.01019.48
8.4.30.0110.00817.59
8.4.20.0130.00917.44
8.4.10.0070.00417.56
8.3.280.0100.01018.26
8.3.270.0140.00616.69
8.3.260.0130.00616.42
8.3.250.0130.00519.03
8.3.240.0110.00716.54
8.3.230.0060.00316.54
8.3.220.0040.00317.42
8.3.210.0140.00416.57
8.3.200.0030.00516.48
8.3.190.0100.00917.05
8.3.180.0140.00616.51
8.3.170.0060.00316.44
8.3.160.0140.00318.91
8.3.150.0120.00617.02
8.3.140.0040.01118.44
8.3.130.0030.00518.34
8.3.120.0040.00418.50
8.3.110.0130.01016.48
8.3.100.0000.00916.65
8.3.90.0110.00726.77
8.3.80.0060.00318.31
8.3.70.0100.00716.38
8.3.60.0090.01218.33
8.3.50.0140.00722.04
8.3.40.0060.01618.61
8.3.30.0060.00918.71
8.3.20.0070.00019.13
8.3.10.0040.00421.70
8.3.00.0040.00420.88
8.2.290.0130.00620.51
8.2.280.0050.00319.96
8.2.270.0110.00716.48
8.2.260.0070.01418.59
8.2.250.0160.00316.69
8.2.240.0060.01217.11
8.2.230.0130.00620.94
8.2.220.0000.01016.46
8.2.210.0040.00426.77
8.2.200.0120.00016.50
8.2.190.0170.00016.58
8.2.180.0110.00416.38
8.2.170.0090.00622.96
8.2.160.0070.00719.22
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0020.00520.53
8.2.120.0040.00426.35
8.2.110.0030.00719.30
8.2.100.0110.00017.72
8.2.90.0040.00419.63
8.2.80.0060.00617.97
8.2.70.0030.00617.38
8.2.60.0060.00317.92
8.2.50.0090.00018.07
8.2.40.0050.00518.22
8.2.30.0040.00417.98
8.2.20.0000.00817.58
8.2.10.0040.00418.05
8.2.00.0000.00717.93
8.1.330.0100.00718.26
8.1.320.0120.00618.11
8.1.310.0070.00316.70
8.1.300.0070.00020.21
8.1.290.0000.00930.84
8.1.280.0100.00325.92
8.1.270.0050.00223.97
8.1.260.0030.00528.09
8.1.250.0020.00528.09
8.1.240.0070.00321.06
8.1.230.0100.00022.12
8.1.220.0000.00817.77
8.1.210.0000.00818.88
8.1.200.0050.00517.23
8.1.190.0000.00817.22
8.1.180.0030.00618.10
8.1.170.0050.00518.52
8.1.160.0080.00018.83
8.1.150.0050.00318.77
8.1.140.0070.00019.52
8.1.130.0040.00417.63
8.1.120.0000.00717.38
8.1.110.0040.00317.32
8.1.100.0040.00417.35
8.1.90.0000.00717.37
8.1.80.0040.00417.43
8.1.70.0030.00317.36
8.1.60.0040.00417.58
8.1.50.0040.00417.45
8.1.40.0040.00417.35
8.1.30.0040.00417.64
8.1.20.0030.00617.64
8.1.10.0070.00317.47
8.1.00.0030.01017.36
8.0.300.0040.00420.07
8.0.290.0030.00616.75
8.0.280.0000.00718.44
8.0.270.0000.00717.24
8.0.260.0030.00617.27
8.0.250.0030.00316.88
8.0.240.0000.00816.92
8.0.230.0030.00316.86
8.0.220.0070.00016.73
8.0.210.0040.00416.84
8.0.200.0000.00616.76
8.0.190.0050.00216.88
8.0.180.0040.00416.71
8.0.170.0000.00716.80
8.0.160.0000.00816.80
8.0.150.0040.00416.73
8.0.140.0060.00616.81
8.0.130.0030.00413.18
8.0.120.0030.00516.70
8.0.110.0040.00416.72
8.0.100.0030.00316.82
8.0.90.0000.00716.83
8.0.80.0070.00716.80
8.0.70.0030.00616.85
8.0.60.0040.00416.63
8.0.50.0040.00416.70
8.0.30.0070.01017.08
8.0.20.0100.01017.40
8.0.10.0020.00516.95
8.0.00.0070.01416.71
7.4.330.0020.00215.08
7.4.320.0040.00416.39
7.4.300.0060.00016.45
7.4.290.0000.00716.58
7.4.280.0040.00416.36
7.4.270.0070.00016.55
7.4.260.0040.00416.37
7.4.250.0070.00016.40
7.4.240.0070.00016.35
7.4.230.0000.00716.49
7.4.220.0040.02016.50
7.4.210.0060.01316.59
7.4.200.0020.00516.64
7.4.160.0060.00916.29
7.4.150.0070.01017.40
7.4.140.0100.00717.86
7.4.130.0100.00716.52
7.4.120.0140.00616.47
7.4.110.0080.00816.32
7.4.100.0120.00416.38
7.4.90.0030.01516.38
7.4.80.0100.00719.39
7.4.70.0030.01216.49
7.4.60.0070.01016.35
7.4.50.0070.01016.45
7.4.40.0110.01116.21
7.4.30.0160.00016.38
7.4.00.0060.01014.74
7.3.330.0050.00012.90
7.3.320.0000.00512.95
7.3.310.0070.00016.10
7.3.300.0000.00816.17
7.3.290.0040.01216.15
7.3.280.0090.00616.12
7.3.270.0090.00917.40
7.3.260.0070.01216.26
7.3.250.0090.00916.20
7.3.240.0100.00716.41
7.3.230.0100.00716.39
7.3.210.0060.01016.20
7.3.200.0060.00916.04
7.3.190.0080.00816.34
7.3.180.0160.00416.25
7.3.170.0030.01316.38
7.3.160.0070.01016.36
7.3.120.0100.01014.88
7.3.110.0100.01014.72
7.3.100.0030.01014.71
7.3.90.0060.01014.86
7.3.80.0030.00914.61
7.3.70.0070.00414.65
7.3.60.0060.00614.70
7.3.50.0050.00514.53
7.3.40.0030.01414.43
7.3.30.0000.00914.69
7.3.20.0040.01116.67
7.3.10.0070.00616.57
7.3.00.0070.00516.52
7.2.330.0040.01316.36
7.2.320.0090.00916.53
7.2.310.0050.01916.63
7.2.300.0100.00716.64
7.2.290.0170.00416.46
7.2.250.0030.01314.71
7.2.240.0070.00715.02
7.2.230.0060.00914.89
7.2.220.0050.00514.83
7.2.210.0080.00614.91
7.2.200.0040.00714.60
7.2.190.0030.00915.12
7.2.180.0040.01514.84
7.2.170.0040.01114.70
7.2.130.0060.00616.88
7.2.120.0040.01116.82
7.2.110.0030.01016.83
7.2.100.0100.00316.82
7.2.90.0070.00316.85
7.2.80.0120.00616.93
7.2.70.0040.01116.64
7.2.60.0080.00816.82
7.2.50.0070.00416.76
7.2.40.0060.00916.93
7.2.30.0000.01716.98
7.2.20.0070.00316.70
7.2.10.0070.00416.96
7.2.00.0060.00817.86
7.1.330.0060.01215.45
7.1.320.0080.00415.65
7.1.310.0040.01115.39
7.1.300.0100.00315.50
7.1.290.0000.01515.44
7.1.280.0070.00415.37
7.1.270.0080.00415.77
7.1.260.0000.01315.40
7.1.250.0060.00615.69
7.1.200.0100.00315.61
7.1.100.0000.01317.96
7.1.70.0000.00717.18
7.1.60.0130.01019.47
7.1.00.0000.08022.43
7.0.200.0180.00414.50
7.0.60.0030.06320.01
7.0.50.1430.05720.40
7.0.40.1230.05720.23
7.0.30.1470.05020.29
7.0.20.1430.06020.36
7.0.10.1230.06020.21
7.0.00.1270.06020.32
5.6.280.0030.07320.80
5.6.210.0200.04720.64
5.6.200.1370.04720.98
5.6.190.1230.05721.13
5.6.180.1330.05321.02
5.6.170.1030.05721.13
5.6.160.1270.05721.06
5.6.150.1330.06020.96
5.6.140.1070.05321.05
5.6.130.1200.06020.99
5.6.120.0230.04721.10
5.6.110.0700.04721.08
5.6.100.1300.05021.06
5.6.90.1270.05721.13
5.6.80.1270.05320.55
5.6.70.1370.06020.46
5.6.60.1270.05320.46
5.6.50.1170.06720.46
5.6.40.1270.06020.36
5.6.30.1200.06320.44
5.6.20.1230.05320.34
5.6.10.1230.05720.51
5.6.00.1330.05720.36
5.5.350.0500.06320.38
5.5.340.1130.07020.81
5.5.330.1170.06720.88
5.5.320.1330.04720.93
5.5.310.1030.05320.80
5.5.300.1030.05320.92
5.5.290.1300.05720.70
5.5.280.0100.06320.92
5.5.270.1200.06020.91
5.5.260.1200.06020.78
5.5.250.1300.05320.78
5.5.240.1200.06020.21
5.5.230.1330.05020.19
5.5.220.1230.05320.28
5.5.210.0930.06020.33
5.5.200.1300.05320.13
5.5.190.1300.05320.13
5.5.180.1330.04720.16
5.5.160.1130.06320.29
5.5.150.1270.05020.30
5.5.140.1300.04720.16
5.5.130.1200.05320.13
5.5.120.1200.05320.20
5.5.110.1230.06020.27
5.5.100.1200.05720.19
5.5.90.1300.04320.15
5.5.80.1130.05720.02
5.5.70.1300.05020.20
5.5.60.1270.04320.05
5.5.50.1270.04720.14
5.5.40.1270.05720.04
5.5.30.1200.06719.96
5.5.20.1170.06020.13
5.5.10.1300.04720.10
5.5.00.1370.04319.96

preferences:
102.76 ms | 403 KiB | 5 Q