3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = "[h1]This is Just a text, [h1]and this inside it[/h1] This just example[/h1]"; echo str_replace(['[h1]', '[/h1]'], ['<h1>', '</h1>'], $var);

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.10.0110.00616.54
8.5.00.0120.01019.73
8.4.150.0020.00014.05
8.4.140.0130.01017.45
8.4.130.0080.00418.62
8.4.120.0110.00923.86
8.4.110.0080.00818.85
8.4.100.0140.00717.69
8.4.90.0070.00220.52
8.4.80.0060.00319.55
8.4.70.0130.00517.83
8.4.60.0100.01018.90
8.4.50.0150.00517.46
8.4.40.0060.00319.40
8.4.30.0080.01117.80
8.4.20.0160.00319.37
8.4.10.0060.00319.72
8.3.280.0130.00718.30
8.3.270.0130.00616.66
8.3.260.0130.00316.58
8.3.250.0120.00618.76
8.3.240.0120.00817.09
8.3.230.0060.00416.24
8.3.220.0040.00318.90
8.3.210.0080.00716.51
8.3.200.0030.00516.48
8.3.190.0090.01016.96
8.3.180.0100.01116.43
8.3.170.0060.00317.18
8.3.160.0070.01118.18
8.3.150.0040.00416.96
8.3.140.0090.00918.80
8.3.130.0040.00416.44
8.3.120.0030.00518.96
8.3.110.0030.00720.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0060.00317.97
8.3.70.0060.00918.18
8.3.60.0070.00718.27
8.3.50.0130.00717.19
8.3.40.0120.00618.50
8.3.30.0000.01418.62
8.3.20.0040.00420.34
8.3.10.0070.00023.61
8.3.00.0080.00019.25
8.2.290.0090.00918.89
8.2.280.0090.01018.32
8.2.270.0140.00417.05
8.2.260.0080.00017.34
8.2.250.0080.00016.42
8.2.240.0030.00618.80
8.2.230.0080.00822.58
8.2.220.0050.00537.54
8.2.210.0040.00426.77
8.2.200.0060.00316.38
8.2.190.0110.00416.58
8.2.180.0110.00418.29
8.2.170.0070.01022.96
8.2.160.0070.00720.29
8.2.150.0000.00725.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00418.90
8.2.110.0090.00021.25
8.2.100.0060.00617.72
8.2.90.0030.00518.09
8.2.80.0040.00417.97
8.2.70.0080.00018.04
8.2.60.0060.00318.22
8.2.50.0030.00518.16
8.2.40.0000.00720.47
8.2.30.0040.00419.48
8.2.20.0030.00517.93
8.2.10.0000.00717.88
8.2.00.0040.00418.23
8.1.330.0110.00816.65
8.1.320.0140.00516.00
8.1.310.0070.01016.74
8.1.300.0030.01319.72
8.1.290.0030.00630.84
8.1.280.0130.00625.92
8.1.270.0040.00420.04
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.05
8.1.230.0040.00719.07
8.1.220.0070.00717.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0040.00417.22
8.1.180.0030.00618.10
8.1.170.0000.00918.65
8.1.160.0000.00718.87
8.1.150.0070.00318.69
8.1.140.0030.00319.14
8.1.130.0070.00019.07
8.1.120.0020.00517.37
8.1.110.0040.00417.38
8.1.100.0000.00717.29
8.1.90.0070.00017.28
8.1.80.0060.00517.36
8.1.70.0000.00717.26
8.1.60.0030.00517.45
8.1.50.0030.00517.29
8.1.40.0000.00817.52
8.1.30.0030.00517.48
8.1.20.0050.00217.52
8.1.10.0000.00717.38
8.1.00.0000.00817.44
8.0.300.0070.00019.65
8.0.290.0080.00016.61
8.0.280.0000.00718.36
8.0.270.0040.00417.26
8.0.260.0030.00317.20
8.0.250.0030.00316.95
8.0.240.0000.00716.92
8.0.230.0090.00016.82
8.0.220.0040.00416.75
8.0.210.0070.00016.85
8.0.200.0060.00016.89
8.0.190.0000.00716.92
8.0.180.0040.00416.82
8.0.170.0030.00616.84
8.0.160.0070.00016.72
8.0.150.0040.00816.75
8.0.140.0030.00316.73
8.0.130.0050.00013.18
8.0.120.0000.00816.76
8.0.110.0000.00816.81
8.0.100.0020.00516.71
8.0.90.0040.00416.80
8.0.80.0060.00916.84
8.0.70.0000.00816.75
8.0.60.0050.00216.68
8.0.50.0040.00416.71
8.0.30.0110.00616.98
8.0.20.0090.01217.40
8.0.10.0000.00717.04
8.0.00.0050.01416.57
7.4.330.0000.00515.55
7.4.320.0030.00316.45
7.4.300.0000.00616.38
7.4.290.0000.00716.43
7.4.280.0030.00516.42
7.4.270.0030.00316.44
7.4.260.0070.00016.41
7.4.250.0050.00216.49
7.4.240.0040.00416.55
7.4.230.0070.00016.45
7.4.220.0030.00616.64
7.4.210.0070.00716.63
7.4.200.0030.00316.32
7.4.160.0060.01016.44
7.4.150.0060.01217.40
7.4.140.0130.00617.86
7.4.130.0160.00316.32
7.4.120.0110.00816.47
7.4.110.0030.01416.31
7.4.100.0140.01016.57
7.4.90.0060.01416.43
7.4.80.0070.01019.39
7.4.70.0040.01116.58
7.4.60.0070.00716.31
7.4.50.0040.01116.50
7.4.40.0150.00416.59
7.4.00.0090.00814.85
7.3.330.0050.00012.90
7.3.320.0000.00613.08
7.3.310.0030.00316.16
7.3.300.0040.00415.98
7.3.290.0060.00916.15
7.3.280.0040.01116.13
7.3.270.0070.01017.40
7.3.260.0070.00916.22
7.3.250.0090.00916.27
7.3.240.0080.00916.43
7.3.230.0270.01016.14
7.3.210.0160.00016.26
7.3.200.0060.00916.25
7.3.190.0140.00616.12
7.3.180.0130.00316.33
7.3.170.0180.00616.38
7.3.160.0030.01216.53
7.3.120.0080.01014.71
7.3.110.0080.00814.80
7.3.100.0080.00514.80
7.3.90.0060.01014.76
7.3.80.0060.01114.77
7.3.70.0040.00814.67
7.3.60.0080.00414.54
7.3.50.0060.00814.59
7.3.40.0050.00914.74
7.3.30.0030.00714.72
7.3.20.0060.00816.56
7.3.10.0090.00916.28
7.3.00.0110.00716.45
7.2.330.0150.00716.38
7.2.320.0100.00716.70
7.2.310.0060.00916.57
7.2.300.0030.01516.36
7.2.290.0060.00916.60
7.2.250.0030.01614.52
7.2.240.0080.00814.83
7.2.230.0050.01014.83
7.2.220.0070.00814.91
7.2.210.0050.01014.90
7.2.200.0060.00514.94
7.2.190.0090.00414.64
7.2.180.0050.00814.70
7.2.170.0020.01014.95
7.2.160.0060.00914.72
7.2.150.0030.01016.65
7.2.140.0120.00616.63
7.2.130.0120.00816.59
7.2.120.0080.00716.66
7.2.110.0090.00416.79
7.2.100.0040.01116.65
7.2.90.0090.00516.47
7.2.80.0050.00916.50
7.2.70.0060.00816.54
7.2.60.0100.00616.54
7.2.50.0050.00516.71
7.2.40.0020.01316.45
7.2.30.0060.00716.57
7.2.20.0050.00916.54
7.2.10.0110.00817.36
7.2.00.0090.00917.20
7.1.330.0050.00815.68
7.1.320.0060.00515.65
7.1.310.0050.01115.65
7.1.300.0060.00615.58
7.1.290.0050.00915.55
7.1.280.0040.00715.79
7.1.270.0020.01115.66
7.1.260.0040.00715.47
7.1.250.0060.00815.48
7.1.200.0250.00015.46
7.1.130.0150.00916.50
7.1.120.0140.00916.76
7.1.110.0130.01016.29
7.1.100.0170.00716.18
7.1.90.0120.01216.38
7.1.80.0150.00616.23
7.1.70.0080.01115.21
7.1.60.0220.01233.14
7.1.50.0280.00932.62
7.1.40.0200.01432.46
7.1.30.0190.01332.71
7.1.20.0240.01332.71
7.1.10.0080.01114.71
7.1.00.0150.00614.84

preferences:
38.17 ms | 403 KiB | 5 Q