3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stripphptags($code){ $phpOpenTags = array( '<?','<?php', '<?PHP', '<?Php', '<?PHp', '<?PhP', '<?pHP', ); $phpCloseTag = '?>'; $scriptOpenTags = array('<script>', //rest later ); $scriptCloseTags = array('</script>', '<script/>' ); $code = str_replace($phpOpenTags, '&lt;php', $code); $code = str_replace($phpCloseTag, 'php&gt;', $code); $code = str_replace($scriptOpenTags, '&lt;script&gt;', $code); $code = str_replace($phpOpenTags, '&lt;/script&gt;', $code); return $code; } echo stripphptags('<?php ldkfjal;skdfjasdlkjf ?>');

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.0140.00718.43
8.3.50.0070.00921.89
8.3.40.0110.00418.67
8.3.30.0000.01418.62
8.3.20.0080.00018.60
8.3.10.0040.00421.06
8.3.00.0040.00419.66
8.2.180.0110.00725.92
8.2.170.0030.01218.80
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00320.84
8.2.110.0040.00420.53
8.2.100.0000.01117.91
8.2.90.0030.00619.07
8.2.80.0000.00719.38
8.2.70.0030.00617.49
8.2.60.0040.00418.03
8.2.50.0050.00318.07
8.2.40.0000.00718.22
8.2.30.0040.00419.31
8.2.20.0040.00417.63
8.2.10.0000.00717.67
8.2.00.0040.00717.76
8.1.280.0070.00725.92
8.1.270.0080.00024.66
8.1.260.0090.00926.35
8.1.250.0000.00828.09
8.1.240.0040.00422.66
8.1.230.0080.00420.85
8.1.220.0030.00618.77
8.1.210.0050.00318.91
8.1.200.0000.01017.13
8.1.190.0000.00717.51
8.1.180.0000.00718.10
8.1.170.0060.00318.31
8.1.160.0000.00718.75
8.1.150.0000.00718.62
8.1.140.0000.00717.38
8.1.130.0000.00717.83
8.1.120.0040.00417.36
8.1.110.0040.00417.37
8.1.100.0050.00317.29
8.1.90.0000.00717.39
8.1.80.0070.00017.31
8.1.70.0030.00317.35
8.1.60.0050.00517.62
8.1.50.0040.00417.35
8.1.40.0060.00317.57
8.1.30.0000.00817.63
8.1.20.0000.00917.58
8.1.10.0030.00617.39
8.1.00.0060.00317.34
8.0.300.0040.00419.90
8.0.290.0030.00317.16
8.0.280.0030.00318.49
8.0.270.0030.00317.22
8.0.260.0040.00416.82
8.0.250.0060.00316.84
8.0.240.0040.00716.87
8.0.230.0030.00316.77
8.0.220.0020.00516.83
8.0.210.0040.00416.88
8.0.200.0070.00016.90
8.0.190.0000.00716.86
8.0.180.0060.00316.74
8.0.170.0060.00316.85
8.0.160.0070.00016.81
8.0.150.0000.00816.64
8.0.140.0000.00716.76
8.0.130.0000.00613.21
8.0.120.0050.00316.79
8.0.110.0000.00816.64
8.0.100.0040.00416.70
8.0.90.0020.00516.81
8.0.80.0080.00816.82
8.0.70.0000.00716.68
8.0.60.0040.00416.73
8.0.50.0040.00416.72
8.0.30.0120.00917.10
8.0.20.0140.00817.42
8.0.10.0040.00416.95
8.0.00.0150.00716.70
7.4.330.0050.00016.92
7.4.320.0060.00016.54
7.4.300.0050.00516.61
7.4.290.0050.00216.62
7.4.280.0000.00716.46
7.4.270.0070.00016.61
7.4.260.0000.00613.14
7.4.250.0000.00716.47
7.4.240.0030.00516.65
7.4.230.0040.00416.39
7.4.220.0100.00716.57
7.4.210.0110.01116.58
7.4.200.0070.00016.57
7.4.190.0050.00216.59
7.4.160.0100.00716.64
7.4.150.0150.00917.40
7.4.140.0070.01017.86
7.4.130.0090.01116.42
7.4.120.0070.01216.40
7.4.110.0090.01216.62
7.4.100.0100.01016.25
7.4.90.0130.00616.54
7.4.80.0110.01319.39
7.4.70.0080.00816.55
7.4.60.0070.01416.36
7.4.50.0040.00416.53
7.4.40.0120.00322.77
7.4.30.0090.00916.40
7.4.00.0030.01514.94
7.3.330.0000.00513.30
7.3.320.0030.00313.13
7.3.310.0070.00016.12
7.3.300.0030.00316.10
7.3.290.0100.00716.21
7.3.280.0050.01216.19
7.3.270.0130.01017.40
7.3.260.0120.00618.24
7.3.250.0100.00716.37
7.3.240.0090.00916.50
7.3.230.0140.00316.39
7.3.210.0080.00916.45
7.3.200.0060.01319.39
7.3.190.0050.01816.39
7.3.180.0060.01016.41
7.3.170.0100.01016.31
7.3.160.0090.00616.37
7.3.120.0110.00714.97
7.3.10.0000.01016.54
7.3.00.0110.00416.58
7.2.330.0120.00616.30
7.2.320.0120.00916.71
7.2.310.0130.01016.69
7.2.300.0130.00316.55
7.2.290.0060.00916.38
7.2.130.0030.00816.47
7.2.120.0040.00816.91
7.2.110.0030.00716.89
7.2.100.0080.00317.02
7.2.90.0030.01416.98
7.2.80.0030.01016.98
7.2.70.0030.00816.88
7.2.60.0050.00916.71
7.2.50.0060.01016.91
7.2.40.0070.00316.91
7.2.30.0040.00716.90
7.2.20.0070.00716.43
7.2.10.0070.00716.48
7.2.00.0120.00316.85
7.1.250.0090.00015.83
7.1.200.0030.01015.68
7.1.70.0110.00416.90
7.1.60.0030.01317.12
7.1.50.0070.01016.83
7.1.40.0040.01116.61
7.1.30.0100.00516.62
7.1.20.0130.00416.68
7.1.10.0080.00816.58
7.1.00.0000.01116.58
7.0.200.0040.00716.62
7.0.190.0080.00816.58
7.0.180.0050.00916.58
7.0.170.0030.00916.58
7.0.160.0050.00916.58
7.0.150.0050.01116.58
7.0.140.0090.00516.58
7.0.130.0030.01016.58
7.0.120.0120.00316.58
7.0.110.0050.01016.58
7.0.100.0080.00516.58
7.0.90.0110.00316.58
7.0.80.0100.00516.58
7.0.70.0130.00216.58
7.0.60.0000.01116.58
7.0.50.0130.00416.58
7.0.40.0040.00916.58
7.0.30.0070.00516.58
7.0.20.0050.00916.58
7.0.10.0000.01116.58
7.0.00.0000.01316.58
5.6.300.0060.05120.70
5.6.290.0070.05120.87
5.6.280.0100.04420.88
5.6.270.0130.03920.85
5.6.260.0180.03821.00
5.6.250.0040.04820.97
5.6.240.0140.04520.98
5.6.230.0070.04620.89
5.6.220.0030.05320.82
5.6.210.0090.03821.02
5.6.200.0070.04220.87
5.6.190.0100.04621.03
5.6.180.0070.05921.04
5.6.170.0000.05521.00
5.6.160.0060.04320.99
5.6.150.0160.04520.95
5.6.140.0110.04420.99
5.6.130.0130.04020.99
5.6.120.0100.05220.82
5.6.110.0070.04620.86
5.6.100.0070.04520.76
5.6.90.0110.03920.97
5.6.80.0000.04620.31
5.6.70.0000.05220.40
5.6.60.0070.07320.29
5.6.50.0150.04020.38
5.6.40.0000.04720.21
5.6.30.0030.08720.20
5.6.20.0330.05020.19
5.6.10.0070.03820.18
5.6.00.0030.05520.08
5.5.380.0150.04217.58
5.5.370.0100.03417.67
5.5.360.0070.03717.52
5.5.350.0000.04317.54
5.5.340.0040.03918.20
5.5.330.0030.04117.98
5.5.320.0070.05118.09
5.5.310.0070.04718.08
5.5.300.0100.07217.86
5.5.290.0030.04518.09
5.5.280.0070.06817.86
5.5.270.0240.03117.86
5.5.260.0130.07118.08
5.5.250.0070.03717.81
5.5.240.0070.03317.38
5.5.230.0070.03917.56
5.5.220.0070.04517.23
5.5.210.0070.03517.23
5.5.200.0070.04017.41
5.5.190.0070.04017.35
5.5.180.0030.05117.52
5.5.160.0100.04217.04
5.5.150.0030.06317.44
5.5.140.0030.04717.44
5.5.130.0100.03217.09
5.5.120.0000.04317.53
5.5.110.0060.03517.43
5.5.100.0030.05517.27
5.5.90.0000.06517.26
5.5.80.0030.04017.34
5.5.70.0000.06117.30
5.5.60.0100.07417.36
5.5.50.0070.03417.31
5.5.40.0000.06017.32
5.5.30.0170.04417.33
5.5.20.0000.07517.33
5.5.10.0000.04117.27
5.5.00.0100.03317.24
5.4.450.0100.04219.42
5.4.440.0000.05019.27
5.4.430.0030.06519.39
5.4.420.0070.04719.30
5.4.410.0030.04219.30
5.4.400.0030.04418.93
5.4.390.0060.03519.20
5.4.380.0100.05018.90
5.4.370.0120.04718.98
5.4.360.0100.03319.13
5.4.350.0030.04519.05
5.4.340.0070.04019.20
5.4.320.0070.04919.21
5.4.310.0030.04518.98
5.4.300.0130.04019.06
5.4.290.0170.03719.21
5.4.280.0060.03519.22
5.4.270.0100.04918.98
5.4.260.0030.03919.15
5.4.250.0130.06218.97
5.4.240.0130.03918.91
5.4.230.0030.04018.98
5.4.220.0000.05119.22
5.4.210.0030.08019.13
5.4.200.0070.07619.06
5.4.190.0070.06819.13
5.4.180.0030.03818.98
5.4.170.0060.04419.09
5.4.160.0000.08119.19
5.4.150.0000.06218.92
5.4.140.0070.07616.58
5.4.130.0060.03416.76
5.4.120.0030.03716.77
5.4.110.0060.04516.58
5.4.100.0070.05816.75
5.4.90.0060.05816.71
5.4.80.0030.04816.79
5.4.70.0000.03816.69
5.4.60.0030.03716.60
5.4.50.0030.05016.60
5.4.40.0030.06116.66
5.4.30.0070.03016.72
5.4.20.0030.03516.58
5.4.10.0070.03616.58
5.4.00.0030.03916.58
5.3.290.0030.04816.58
5.3.280.0030.04116.58
5.3.270.0000.06216.58
5.3.260.0030.06716.58
5.3.250.0000.04316.58
5.3.240.0030.04016.58
5.3.230.0000.05516.58
5.3.220.0000.04016.58
5.3.210.0070.03316.58
5.3.200.0030.07016.58
5.3.190.0030.04316.58
5.3.180.0070.07016.58
5.3.170.0030.05516.58
5.3.160.0060.06116.58
5.3.150.0030.07016.58
5.3.140.0030.06216.58
5.3.130.0030.04016.58
5.3.120.0070.04116.58
5.3.110.0030.03816.58
5.3.100.0000.05716.58
5.3.90.0030.03516.58
5.3.80.0040.03516.58
5.3.70.0030.03816.58
5.3.60.0100.03916.58
5.3.50.0000.03716.58
5.3.40.0030.03616.58
5.3.30.0000.04816.58
5.3.20.0030.03416.58
5.3.10.0030.03816.58
5.3.00.0000.04516.58
5.2.170.0000.03416.58
5.2.160.0000.03116.58
5.2.150.0000.04116.58
5.2.140.0000.03416.58
5.2.130.0000.03416.58
5.2.120.0130.02516.58
5.2.110.0070.04316.58
5.2.100.0000.03816.58
5.2.90.0000.03316.58
5.2.80.0030.03916.58
5.2.70.0070.02716.58
5.2.60.0000.03116.58
5.2.50.0030.03416.58
5.2.40.0030.03416.58
5.2.30.0000.03616.58
5.2.20.0030.02916.58
5.2.10.0000.03216.58
5.2.00.0030.02616.58
5.1.60.0100.02416.58
5.1.50.0030.02316.58
5.1.40.0070.02016.58
5.1.30.0030.03316.58
5.1.20.0060.02516.58
5.1.10.0030.02316.58
5.1.00.0030.02316.58
5.0.50.0030.02416.58
5.0.40.0000.02716.58
5.0.30.0100.04116.58
5.0.20.0030.01916.58
5.0.10.0040.01916.58
5.0.00.0130.03616.58
4.4.90.0000.02016.58
4.4.80.0000.02316.58
4.4.70.0040.01516.58
4.4.60.0000.01716.58
4.4.50.0000.01616.58
4.4.40.0000.02716.58
4.4.30.0000.02016.58
4.4.20.0000.02516.58
4.4.10.0000.02116.58
4.4.00.0000.04616.58
4.3.110.0000.01716.58
4.3.100.0000.02616.58
4.3.90.0000.03216.58
4.3.80.0070.02116.58
4.3.70.0030.01916.58
4.3.60.0000.01616.58
4.3.50.0000.04016.58
4.3.40.0030.02116.58
4.3.30.0000.01716.58
4.3.20.0000.01616.58
4.3.10.0070.03916.58
4.3.00.0000.01716.58

preferences:
54.14 ms | 401 KiB | 5 Q