3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = '<?php $x = \'*\'; $x = str_replace(chr(0x2A), $x, $x); $x = addslashes($x); $x = str_replace("\n", \'<br />\', $x); echo $x; ?>'; $x = str_replace("\n", '<br />', $x); $x = str_replace(chr(0x2A), $x, $x); $x = addslashes($x); echo $x; ?>

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.00618.43
8.3.50.0070.00718.06
8.3.40.0120.00618.61
8.3.30.0070.00718.99
8.3.20.0040.00420.29
8.3.10.0030.00522.08
8.3.00.0040.00422.27
8.2.180.0130.00616.50
8.2.170.0190.00022.96
8.2.160.0070.00722.13
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.26
8.2.110.0000.00922.11
8.2.100.0000.01118.03
8.2.90.0090.00019.22
8.2.80.0080.00017.97
8.2.70.0030.00517.63
8.2.60.0030.00517.93
8.2.50.0040.00418.22
8.2.40.0040.00420.64
8.2.30.0000.00719.13
8.2.20.0000.00717.76
8.2.10.0040.00419.59
8.2.00.0050.00317.81
8.1.270.0070.00023.83
8.1.260.0060.00326.35
8.1.250.0070.01128.09
8.1.240.0040.00420.95
8.1.230.0000.01120.32
8.1.220.0060.00317.91
8.1.210.0030.00618.77
8.1.200.0060.00317.22
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0080.00018.51
8.1.160.0050.00318.91
8.1.150.0000.00719.99
8.1.140.0000.00817.45
8.1.130.0050.00217.69
8.1.120.0030.00417.36
8.1.110.0000.00817.45
8.1.100.0040.00417.40
8.1.90.0030.00517.46
8.1.80.0050.00217.31
8.1.70.0000.00717.38
8.1.60.0030.00617.38
8.1.50.0050.00317.42
8.1.40.0000.00717.45
8.1.30.0000.00817.52
8.1.20.0080.00017.51
8.1.10.0060.00317.48
8.1.00.0050.00217.50
8.0.300.0050.00319.15
8.0.290.0000.00816.63
8.0.280.0030.00318.32
8.0.270.0000.00817.18
8.0.260.0000.00616.84
8.0.250.0000.00716.99
8.0.240.0030.00416.93
8.0.230.0000.00816.93
8.0.220.0030.00316.86
8.0.210.0000.00816.80
8.0.200.0080.00016.93
8.0.190.0050.00316.86
8.0.180.0000.00716.77
8.0.170.0060.00316.77
8.0.160.0050.00216.83
8.0.150.0000.00816.88
8.0.140.0050.00316.82
8.0.130.0000.00513.32
8.0.120.0050.00316.75
8.0.110.0050.00316.68
8.0.100.0050.00216.72
8.0.90.0050.00316.66
8.0.80.0070.01016.88
8.0.70.0000.00816.84
8.0.60.0040.00416.71
8.0.50.0040.00416.71
8.0.30.0100.00917.04
8.0.20.0120.00817.40
8.0.10.0040.00416.76
8.0.00.0110.00816.83
7.4.330.0030.00315.00
7.4.320.0000.00716.32
7.4.300.0030.00316.49
7.4.290.0000.00716.46
7.4.280.0070.00016.45
7.4.270.0030.00616.44
7.4.260.0040.00416.36
7.4.250.0040.00416.55
7.4.240.0020.00516.49
7.4.230.0030.00316.53
7.4.220.0060.01016.50
7.4.210.0050.01116.46
7.4.200.0000.00716.64
7.4.190.0040.00416.35
7.4.160.0100.00616.42
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0110.00616.50
7.4.120.0100.00616.47
7.4.110.0100.00616.24
7.4.100.0090.00916.46
7.4.90.0110.00716.44
7.4.80.0080.00819.39
7.4.70.0100.00616.50
7.4.60.0000.01716.26
7.4.50.0000.00816.50
7.4.40.0090.00622.77
7.4.30.0060.00916.50
7.4.00.0060.01014.68
7.3.330.0020.00213.13
7.3.320.0070.00013.08
7.3.310.0040.00416.27
7.3.300.0030.00316.16
7.3.290.0070.00716.11
7.3.280.0110.00416.19
7.3.270.0100.00717.40
7.3.260.0060.01816.21
7.3.250.0130.00616.21
7.3.240.0030.01416.24
7.3.230.0070.01016.46
7.3.210.0070.01016.28
7.3.200.0110.00619.39
7.3.190.0090.01216.34
7.3.180.0060.00916.23
7.3.170.0100.00616.43
7.3.160.0100.00716.31
7.3.120.0000.01214.84
7.2.330.0100.01616.52
7.2.320.0090.01716.65
7.2.310.0140.00916.66
7.2.300.0080.00916.36
7.2.290.0100.00716.22
7.1.200.0000.01015.48
7.1.70.0000.00817.03
7.1.60.0100.01319.82
7.1.50.0100.01316.86
7.1.00.0100.07022.27
7.0.200.0100.00316.63
7.0.140.0030.09722.16
7.0.80.0030.04720.02
7.0.70.0030.04319.85
7.0.60.0100.08319.94
7.0.50.0070.05320.32
7.0.40.0170.07320.12
7.0.30.0130.04719.99
7.0.20.0170.07020.03
7.0.10.0070.08020.07
7.0.00.0130.07720.04
5.6.280.0030.07321.09
5.6.230.0100.08020.53
5.6.220.0130.07720.55
5.6.210.0030.05020.47
5.6.200.0030.07321.02
5.6.190.0100.05321.02
5.6.180.0170.07021.06
5.6.170.0100.08021.04
5.6.160.0030.04721.13
5.6.150.0100.04321.02
5.6.140.0070.06021.01
5.6.130.0070.04321.04
5.6.120.0000.04720.91
5.6.110.0070.08321.02
5.6.100.0100.08021.06
5.6.90.0100.08020.91
5.6.80.0070.07720.51
5.6.70.0070.05720.40
5.6.60.0130.07720.41
5.6.50.0100.06720.46
5.6.40.0070.05020.37
5.6.30.0070.05020.52
5.6.20.0100.07320.42
5.6.10.0070.08020.39
5.6.00.0070.07320.35
5.5.370.0030.08320.38
5.5.360.0170.06720.33
5.5.350.0030.05020.44
5.5.340.0100.08020.82
5.5.330.0030.08720.87
5.5.320.0130.08020.64
5.5.310.0230.07020.88
5.5.300.0100.08020.86
5.5.290.0070.04020.82
5.5.280.0070.07320.87
5.5.270.0030.06320.90
5.5.260.0070.07720.90
5.5.250.0070.08020.73
5.5.240.0200.06720.23
5.5.230.0130.04020.15
5.5.220.0100.07020.16
5.5.210.0070.07020.20
5.5.200.0100.07320.25
5.5.190.0100.07020.25
5.5.180.0100.07320.20
5.5.160.0070.04720.11
5.5.150.0100.03320.07
5.5.140.0100.07020.25
5.5.130.0200.06720.09
5.5.120.0070.08020.07
5.5.110.0030.04720.14
5.5.100.0070.08320.09
5.5.90.0100.08020.10
5.5.80.0070.05320.04
5.5.70.0070.07020.08
5.5.60.0070.05020.14
5.5.50.0170.07320.08
5.5.40.0030.05020.14
5.5.30.0030.08020.04
5.5.20.0130.07020.02
5.5.10.0100.04720.04
5.5.00.0000.05320.09
5.4.450.0070.05019.40
5.4.440.0130.04019.11
5.4.430.0170.06719.22
5.4.420.0130.04019.16
5.4.410.0170.03019.01
5.4.400.0000.08018.90
5.4.390.0100.07019.03
5.4.380.0070.07319.12
5.4.370.0030.07319.15
5.4.360.0130.07018.94
5.4.350.0030.06319.13
5.4.340.0100.05719.10
5.4.320.0000.07019.23
5.4.310.0100.06319.06
5.4.300.0100.04318.98
5.4.290.0030.07718.96
5.4.280.0070.07019.13
5.4.270.0030.07019.02
5.4.260.0070.05019.05
5.4.250.0000.08018.89
5.4.240.0030.04719.22
5.4.230.0100.04718.89
5.4.220.0030.07718.97
5.4.210.0200.06019.02
5.4.200.0070.07019.09
5.4.190.0030.04019.04
5.4.180.0070.08019.02
5.4.170.0200.06719.05
5.4.160.0000.05019.00
5.4.150.0100.06719.10
5.4.140.0100.05716.39
5.4.130.0070.07316.27
5.4.120.0030.06316.30
5.4.110.0100.07316.29
5.4.100.0100.07016.44
5.4.90.0030.07716.25
5.4.80.0100.04316.25
5.4.70.0100.07316.25
5.4.60.0000.05316.36
5.4.50.0100.03316.25
5.4.40.0000.04016.40
5.4.30.0030.08016.25
5.4.20.0000.07016.27
5.4.10.0030.07716.25
5.4.00.0130.06016.25
5.3.290.0100.07716.25
5.3.280.0000.08716.25
5.3.270.0070.04316.25
5.3.260.0070.07016.25
5.3.250.0000.07316.25
5.3.240.0130.07316.25
5.3.230.0130.07016.25
5.3.220.0100.07016.25
5.3.210.0070.08016.25
5.3.200.0130.06316.25
5.3.190.0070.07016.25
5.3.180.0100.04316.25
5.3.170.0070.04716.25
5.3.160.0030.07716.25
5.3.150.0030.07716.25
5.3.140.0070.03716.25
5.3.130.0070.06716.25
5.3.120.0070.05016.25
5.3.110.0070.07716.25
5.3.100.0170.06716.25
5.3.90.0070.07016.25
5.3.80.0000.08016.25
5.3.70.0070.05316.25
5.3.60.0100.07016.25
5.3.50.0000.04316.25
5.3.40.0100.06316.25
5.3.30.0070.03716.25
5.3.20.0100.06716.25
5.3.10.0030.07316.25
5.3.00.0200.06316.25
5.2.170.0030.03016.25
5.2.160.0170.05316.25
5.2.150.0070.05716.25
5.2.140.0070.06016.25
5.2.130.0100.05316.25
5.2.120.0170.03716.25
5.2.110.0070.06016.25
5.2.100.0100.04316.25
5.2.90.0030.06016.25
5.2.80.0030.05716.25
5.2.70.0170.03316.25
5.2.60.0000.06716.25
5.2.50.0070.05716.25
5.2.40.0000.05716.25
5.2.30.0000.07016.25
5.2.20.0030.06016.25
5.2.10.0030.03016.25
5.2.00.0000.06316.25
5.1.60.0070.05016.25
5.1.50.0070.05016.25
5.1.40.0070.05016.25
5.1.30.0100.04716.25
5.1.20.0000.05316.25
5.1.10.0070.05016.25
5.1.00.0030.06016.25
5.0.50.0100.03716.25
5.0.40.0000.04716.25
5.0.30.0070.05716.25
5.0.20.0030.04016.25
5.0.10.0000.04016.25
5.0.00.0000.07016.25
4.4.90.0030.03016.25
4.4.80.0000.03716.25
4.4.70.0030.02016.25
4.4.60.0030.02016.25
4.4.50.0000.03716.25
4.4.40.0070.05016.25
4.4.30.0030.03316.25
4.4.20.0070.02316.25
4.4.10.0030.03316.25
4.4.00.0030.04716.25
4.3.110.0030.03316.25
4.3.100.0000.03316.25
4.3.90.0100.03016.25
4.3.80.0000.05316.25
4.3.70.0030.02016.25
4.3.60.0000.02016.25
4.3.50.0000.02316.25
4.3.40.0030.05016.25
4.3.30.0030.02716.25
4.3.20.0030.03316.25
4.3.10.0000.03716.25
4.3.00.0030.01716.25

preferences:
61.42 ms | 400 KiB | 5 Q