3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT <html>[sourcecode language='php']<?php echo "hello world"; ?>[/sourcecode]</html> TEXT; echo strip_tags($text); echo "\n---\n"; var_export( preg_replace(['#</?[a-z][^>]*>#i', '#\[/?sourcecode[^]]*]#i'], '', $text) );

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.0100.01020.05
8.4.150.0030.00014.05
8.4.140.0140.00817.60
8.4.130.0100.01118.12
8.4.120.0060.00620.66
8.4.110.0120.00918.93
8.4.100.0110.00918.12
8.4.90.0090.00820.30
8.4.80.0080.00719.15
8.4.70.0040.00518.91
8.4.60.0090.01020.84
8.4.50.0020.00722.52
8.4.40.0070.01417.84
8.4.30.0130.00624.07
8.4.20.0070.00419.80
8.4.10.0140.00719.41
8.3.280.0130.00818.63
8.3.270.0110.01416.86
8.3.260.0110.00916.40
8.3.250.0150.00618.72
8.3.240.0050.00316.70
8.3.230.0130.00716.82
8.3.220.0130.00618.86
8.3.210.0080.01016.77
8.3.200.0030.00616.55
8.3.190.0060.00217.11
8.3.180.0130.00518.66
8.3.170.0040.00417.08
8.3.160.0040.01418.46
8.3.150.0100.01017.11
8.3.140.0150.00318.56
8.3.130.0070.00318.59
8.3.120.0100.00016.90
8.3.110.0160.00516.79
8.3.100.0200.00316.23
8.3.90.0200.00416.45
8.3.80.0160.00516.30
8.3.70.0200.00316.37
8.3.60.0210.00016.46
8.3.50.0190.00516.48
8.3.40.0120.00617.48
8.3.30.0180.00017.46
8.3.20.0140.00317.61
8.3.10.0100.00717.44
8.3.00.0070.00317.50
8.2.290.0080.01116.96
8.2.280.0110.00920.47
8.2.270.0060.01216.84
8.2.260.0130.00617.39
8.2.250.0060.00316.71
8.2.240.0060.00317.47
8.2.230.0140.00516.65
8.2.220.0150.00416.39
8.2.210.0180.00016.27
8.2.200.0150.00416.72
8.2.190.0120.00816.77
8.2.180.0160.00316.70
8.2.170.0120.00817.68
8.2.160.0130.00717.53
8.2.150.0210.00017.54
8.2.140.0160.00417.46
8.2.130.0150.00717.35
8.2.120.0150.00617.31
8.2.110.0140.00717.65
8.2.100.0100.01017.50
8.2.90.0170.00317.48
8.2.80.0140.00617.26
8.2.70.0150.00617.87
8.2.60.0070.01317.30
8.2.50.0170.00317.31
8.2.40.0150.00417.46
8.2.30.0160.00317.13
8.2.20.0140.00617.27
8.2.10.0150.00317.59
8.2.00.0140.00317.33
8.1.330.0090.01016.43
8.1.320.0110.00718.14
8.1.310.0040.00418.21
8.1.300.0150.00616.21
8.1.290.0120.00615.99
8.1.280.0110.00816.20
8.1.270.0140.00717.20
8.1.260.0160.00317.13
8.1.250.0060.01417.47
8.1.240.0060.01217.44
8.1.230.0140.00417.32
8.1.220.0190.00017.11
8.1.210.0130.00517.28
8.1.200.0110.00717.36
8.1.190.0090.00916.91
8.1.180.0130.00417.13
8.1.170.0170.00017.34
8.1.160.0100.00717.37
8.1.150.0100.00717.21
8.1.140.0110.00617.27
8.1.130.0130.00517.09
8.1.120.0180.00017.35
8.1.110.0180.00016.96
8.1.100.0130.00317.26
8.1.90.0150.00317.27
8.1.80.0100.00717.13
8.1.70.0140.00417.21
8.1.60.0130.00517.44
8.1.50.0160.00317.29
8.1.40.0130.00617.30
8.1.30.0120.00217.64
8.1.20.0070.00317.58
8.1.10.0000.01017.37
8.1.00.0070.00217.44

preferences:
70.63 ms | 403 KiB | 5 Q