3v4l.org

run code in 300+ PHP versions simultaneously
<?php $msg = '$hello , ken (JX02), Your Orders $invoiceno has been delivered. Thank you.'; $hello = "morning!"; $msg = isset($hello) ? str_replace( '$hello' , $hello, $msg): str_replace( '$hello' , "", $msg); $msg = isset($invoiceno) ? str_replace( '$invoiceno' , $invoiceno, $msg): str_replace( '$invoiceno' , "", $msg); echo str_replace(" ", " ", $msg);; ?>

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.120.0070.00220.60
8.4.110.0110.00618.87
8.4.100.0110.00818.88
8.4.90.0110.00920.48
8.4.80.0030.00519.00
8.4.70.0120.00519.07
8.4.60.0050.00418.92
8.4.50.0110.00918.48
8.4.40.0060.00319.17
8.4.30.0150.00018.62
8.4.20.0130.00620.62
8.4.10.0040.00417.64
8.3.250.0070.00117.06
8.3.240.0110.00816.34
8.3.230.0130.00616.53
8.3.220.0100.00718.81
8.3.210.0110.00818.55
8.3.200.0040.00516.36
8.3.190.0100.00816.97
8.3.180.0120.00618.88
8.3.170.0130.00618.45
8.3.160.0070.01116.99
8.3.150.0040.01417.24
8.3.140.0080.00020.79
8.3.130.0060.00318.30
8.3.120.0100.00718.84
8.3.110.0090.00020.94
8.3.100.0090.00024.06
8.3.90.0080.00026.77
8.3.80.0030.00619.36
8.3.70.0120.00916.38
8.3.60.0100.01018.43
8.3.50.0040.01017.23
8.3.40.0030.01018.70
8.3.30.0030.01218.54
8.3.20.0040.00420.52
8.3.10.0040.00421.72
8.3.00.0040.00422.43
8.2.290.0110.00820.21
8.2.280.0110.00818.11
8.2.270.0140.00419.04
8.2.260.0050.00316.50
8.2.250.0080.00016.80
8.2.240.0060.00317.12
8.2.230.0040.00422.58
8.2.220.0090.00037.54
8.2.210.0070.00026.77
8.2.200.0040.00418.88
8.2.190.0140.00418.54
8.2.180.0150.00616.32
8.2.170.0120.00322.96
8.2.160.0070.00722.26
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00421.18
8.2.110.0030.00621.96
8.2.100.0040.00817.91
8.2.90.0080.00017.91
8.2.80.0030.00517.97
8.2.70.0060.00317.50
8.2.60.0040.00418.04
8.2.50.0090.00018.07
8.2.40.0040.00418.16
8.2.30.0060.00318.06
8.2.20.0070.00018.03
8.2.10.0000.00719.43
8.2.00.0000.00719.25
8.1.330.0100.00722.22
8.1.320.0140.01016.04
8.1.310.0110.00416.01
8.1.300.0140.00418.39
8.1.290.0080.00430.84
8.1.280.0060.01225.92
8.1.270.0040.00422.47
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00022.14
8.1.230.0080.00420.89
8.1.220.0040.00417.79
8.1.210.0060.00320.60
8.1.200.0080.00017.10
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0050.00318.75
8.1.160.0000.00718.84
8.1.150.0000.00718.75
8.1.140.0050.00221.96
8.1.130.0030.00320.04
8.1.120.0080.00017.39
8.1.110.0000.00917.41
8.1.100.0040.00417.30
8.1.90.0000.01017.42
8.1.80.0000.00817.29
8.1.70.0050.00317.41
8.1.60.0060.00317.42
8.1.50.0100.00017.37
8.1.40.0040.00417.50
8.1.30.0000.00817.47
8.1.20.0040.00417.63
8.1.10.0090.00317.36
8.1.00.0040.00417.44
8.0.300.0070.00020.04
8.0.290.0000.00916.75
8.0.280.0000.00718.46
8.0.270.0030.00317.19
8.0.260.0000.00620.21
8.0.250.0030.00316.84
8.0.240.0030.00316.91
8.0.230.0050.00216.92
8.0.220.0000.00616.83
8.0.210.0070.00316.84
8.0.200.0060.00016.77
8.0.190.0000.00716.79
8.0.180.0050.00316.72
8.0.170.0060.00316.85
8.0.160.0000.00816.83
8.0.150.0040.00416.75
8.0.140.0000.00816.81
8.0.130.0030.00313.28
8.0.120.0040.00416.71
8.0.110.0070.00016.86
8.0.100.0040.00416.74
8.0.90.0060.00316.72
8.0.80.0060.00916.84
8.0.70.0040.00416.83
8.0.60.0040.00416.86
8.0.50.0080.00016.83
8.0.30.0090.01117.01
8.0.20.0080.01117.00
8.0.10.0040.00417.00
8.0.00.0100.00716.96
7.4.330.0020.00215.55
7.4.320.0060.00016.52
7.4.300.0060.00016.50
7.4.290.0030.00516.39
7.4.280.0000.00816.44
7.4.270.0050.00216.54
7.4.260.0000.00613.20
7.4.250.0030.00316.41
7.4.240.0040.00416.45
7.4.230.0000.00716.43
7.4.220.0020.00516.54
7.4.210.0060.01116.42
7.4.200.0000.00816.66
7.4.130.0100.01016.61
7.4.120.0100.01316.30
7.4.110.0090.00816.45
7.4.100.0090.01216.36
7.4.90.0180.00016.37
7.4.80.0060.01019.39
7.4.70.0120.00516.39
7.4.60.0090.00816.25
7.4.50.0070.00316.44
7.4.40.0100.00616.26
7.4.00.0070.01014.88
7.3.330.0080.00316.22
7.3.320.0030.00312.89
7.3.310.0000.00716.09
7.3.300.0030.00316.15
7.3.290.0000.00716.15
7.3.280.0110.00316.09
7.3.260.0130.00616.41
7.3.240.0090.00916.24
7.3.230.0110.00516.51
7.3.210.0100.00616.18
7.3.200.0100.00616.56
7.3.190.0120.01416.27
7.3.180.0040.01816.41
7.3.170.0100.00516.25
7.3.160.0130.00316.44
7.3.120.0030.01017.15
7.3.110.0000.01117.15
7.3.100.0290.00515.98
7.3.90.0080.00815.82
7.3.80.0090.00615.86
7.3.70.0070.00715.73
7.3.60.0100.00615.78
7.3.50.0240.00915.72
7.3.40.0040.01015.85
7.3.30.0080.00615.69
7.3.20.0260.00915.72
7.3.10.0210.00815.78
7.3.00.0170.01015.80
7.2.330.0100.00716.46
7.2.320.0060.01316.61
7.2.310.0090.01216.34
7.2.300.0170.00016.53
7.2.290.0090.00816.58
7.2.240.0060.00317.15
7.2.230.0070.00717.15
7.2.220.0100.00415.96
7.2.210.0080.00415.86
7.2.200.0080.00616.01
7.2.190.0090.00515.92
7.2.180.0050.00915.88
7.2.170.0080.01115.61
7.2.160.0060.01015.88
7.2.150.0270.00815.94
7.2.140.0300.00715.88
7.2.130.0370.01015.78
7.2.120.0280.00716.04
7.2.110.0620.00315.94
7.2.100.0410.00415.85
7.2.90.0330.00815.92
7.2.80.0310.01015.89
7.2.70.0410.00715.97
7.2.60.0380.01215.95
7.2.50.0250.01115.95
7.2.40.0300.00516.04
7.2.30.0290.00815.90
7.2.20.0320.00915.96
7.2.10.0280.00616.03
7.2.00.0240.01015.99
7.1.330.0070.00717.15
7.1.320.0130.00315.51
7.1.310.0260.00915.54
7.1.300.0260.01115.37
7.1.290.0260.00615.27
7.1.280.0170.01415.36
7.1.270.0300.00515.47
7.1.260.0390.00615.34
7.1.250.0150.00515.33

preferences:
122.23 ms | 403 KiB | 5 Q