3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = "Pass"; $second = "Jacks Inventory"; $third = "First Second Third etc"; $string = $first . " " . $second . " " . $third; echo preg_replace("/s\b/", "n", $string);

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.0060.01218.30
8.3.50.0110.00418.00
8.3.40.0070.00718.79
8.3.30.0120.00618.79
8.3.20.0080.00019.15
8.3.10.0090.00023.45
8.3.00.0040.00422.36
8.2.180.0140.00025.92
8.2.170.0070.00722.96
8.2.160.0030.01021.07
8.2.150.0000.01025.66
8.2.140.0040.00424.66
8.2.130.0080.00022.24
8.2.120.0050.00226.35
8.2.110.0180.00422.25
8.2.100.0000.01217.91
8.2.90.0030.00618.09
8.2.80.0040.00419.04
8.2.70.0080.00017.75
8.2.60.0040.00417.88
8.2.50.0000.00817.75
8.2.40.0050.00321.06
8.2.30.0000.00720.63
8.2.20.0040.00417.97
8.2.10.0040.00418.13
8.2.00.0040.00419.41
8.1.280.0110.00725.92
8.1.270.0080.00022.20
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0160.00621.02
8.1.230.0060.00620.82
8.1.220.0080.00017.74
8.1.210.0060.00320.61
8.1.200.0000.00817.35
8.1.190.0090.00017.47
8.1.180.0050.00318.10
8.1.170.0000.00818.75
8.1.160.0080.00018.89
8.1.150.0000.00818.86
8.1.140.0080.00018.89
8.1.130.0030.00318.98
8.1.120.0040.00417.54
8.1.110.0040.00417.52
8.1.100.0000.00817.52
8.1.90.0040.00417.61
8.1.80.0000.00817.59
8.1.70.0030.00317.52
8.1.60.0080.00017.76
8.1.50.0080.00017.68
8.1.40.0040.00417.67
8.1.30.0000.00817.77
8.1.20.0000.00817.73
8.1.10.0000.00817.57
8.1.00.0030.00517.46
8.0.300.0000.00720.02
8.0.290.0000.00716.88
8.0.280.0030.00318.37
8.0.270.0000.00717.36
8.0.260.0040.00418.98
8.0.250.0040.00416.99
8.0.240.0000.00817.00
8.0.230.0000.00717.09
8.0.220.0080.00016.98
8.0.210.0030.00316.98
8.0.200.0000.00816.98
8.0.190.0000.00717.06
8.0.180.0000.00817.02
8.0.170.0080.00017.05
8.0.160.0040.00417.05
8.0.150.0030.00516.85
8.0.140.0070.00016.94
8.0.130.0030.00313.46
8.0.120.0000.00816.96
8.0.110.0000.00717.03
8.0.100.0040.00416.97
8.0.90.0040.00416.91
8.0.80.0090.01016.98
8.0.70.0040.00416.98
8.0.60.0070.00016.91
8.0.50.0080.00016.95
8.0.30.0070.01117.18
8.0.20.0060.01317.40
8.0.10.0070.00017.07
8.0.00.0110.00716.74
7.4.330.0000.00615.55
7.4.320.0000.00616.80
7.4.300.0000.00616.80
7.4.290.0030.00316.82
7.4.280.0050.00316.70
7.4.270.0080.00016.75
7.4.260.0060.00316.80
7.4.250.0080.00016.56
7.4.240.0000.00816.65
7.4.230.0000.00716.38
7.4.220.0000.00816.82
7.4.210.0100.00616.72
7.4.200.0030.00316.61
7.4.160.0070.00916.67
7.4.140.0120.00917.86
7.4.130.0080.00916.52
7.4.120.0070.01216.57
7.4.110.0100.00616.50
7.4.100.0060.01516.62
7.4.90.0070.01016.59
7.4.80.0140.00419.39
7.4.70.0060.01216.54
7.4.60.0060.01216.52
7.4.50.0110.00416.79
7.4.40.0110.00716.59
7.4.00.0000.01815.27
7.3.330.0000.00513.10
7.3.320.0000.00713.25
7.3.310.0030.00316.36
7.3.300.0000.00616.39
7.3.290.0030.00316.42
7.3.280.0070.00916.44
7.3.260.0090.01116.58
7.3.240.0090.01016.63
7.3.230.0030.01416.71
7.3.210.0170.00016.50
7.3.200.0150.00316.37
7.3.190.0140.00316.59
7.3.180.0110.00616.51
7.3.170.0100.00616.73
7.3.160.0070.01016.38
7.2.330.0140.01016.46
7.2.320.0000.02116.79
7.2.310.0040.01416.87
7.2.300.0060.00916.87
7.2.290.0090.01516.80
7.2.90.1930.01014.67
7.2.80.2540.00714.63
7.2.70.1490.00615.41
7.2.60.1630.00015.09
7.2.50.2240.00315.08
7.2.40.1450.01414.95
7.2.30.1910.01315.21
7.2.20.2610.01015.15
7.2.10.1620.00614.94
7.2.00.2460.00315.15
7.1.210.3340.01014.05
7.1.200.2910.00713.91
7.1.190.1560.01314.07
7.1.180.1370.01013.80
7.1.170.1550.01013.74
7.1.160.1430.00313.92
7.1.150.2160.01014.08
7.1.140.2270.00314.10
7.1.130.1480.01014.25
7.1.120.1730.00713.80
7.1.110.1260.00313.92
7.1.100.1620.00014.02
7.1.90.3970.00713.76
7.1.80.2910.01013.82
7.1.70.2300.00713.63
7.1.60.4480.01332.09
7.1.50.3110.01631.77
7.1.40.3830.00332.07
7.1.30.5030.02632.07
7.1.20.3480.01331.97
7.1.10.2410.00313.71
7.1.00.1710.00713.85

preferences:
45.52 ms | 400 KiB | 5 Q