3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'dasd asdlkjl kj<script>alert(\'dupa\')</script>dasdas lkdlasd'; preg_replace('/\<script\>(.*)\<\/script\>/i', '$1', $input);

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.0120.00618.43
8.3.50.0090.01223.04
8.3.40.0000.01618.64
8.3.30.0090.00918.75
8.3.20.0000.00720.34
8.3.10.0050.00520.52
8.3.00.0040.00420.82
8.2.180.0150.00618.66
8.2.170.0150.00022.96
8.2.160.0110.00722.38
8.2.150.0020.00524.18
8.2.140.0060.00324.66
8.2.130.0070.00726.16
8.2.120.0040.00419.36
8.2.110.0060.00321.12
8.2.100.0040.00717.80
8.2.90.0000.00819.05
8.2.80.0030.00617.97
8.2.70.0030.00517.63
8.2.60.0080.00017.80
8.2.50.0030.00718.09
8.2.40.0040.00420.45
8.2.30.0000.00719.50
8.2.20.0040.00417.64
8.2.10.0050.00318.07
8.2.00.0040.00418.01
8.1.280.0120.00325.92
8.1.270.0000.00821.80
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0040.00422.46
8.1.230.0040.00817.70
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0090.00017.22
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0000.00818.78
8.1.160.0080.00020.70
8.1.150.0060.00318.79
8.1.140.0040.00419.54
8.1.130.0040.00317.72
8.1.120.0050.00217.52
8.1.110.0040.00417.42
8.1.100.0030.00517.52
8.1.90.0000.00717.52
8.1.80.0000.00717.56
8.1.70.0040.00417.41
8.1.60.0000.00817.49
8.1.50.0040.00417.64
8.1.40.0080.00017.50
8.1.30.0090.00017.78
8.1.20.0000.00717.47
8.1.10.0040.00417.57
8.1.00.0030.00517.52
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.26
8.0.270.0040.00317.13
8.0.260.0040.00417.08
8.0.250.0000.00717.02
8.0.240.0000.00816.97
8.0.230.0040.00416.98
8.0.220.0030.00516.99
8.0.210.0000.00716.86
8.0.200.0000.00617.02
8.0.190.0070.00017.05
8.0.180.0080.00016.91
8.0.170.0000.00816.99
8.0.160.0070.00016.94
8.0.150.0040.00416.96
8.0.140.0000.00716.92
8.0.130.0030.00313.37
8.0.120.0000.00816.82
8.0.110.0020.00516.88
8.0.100.0000.00816.85
8.0.90.0030.00316.96
8.0.80.0040.01216.93
8.0.70.0000.00716.83
8.0.60.0040.00416.85
8.0.50.0040.00416.91
8.0.30.0100.01017.18
8.0.20.0100.01017.43
8.0.10.0020.00516.91
8.0.00.0100.00616.95
7.4.330.0050.00016.80
7.4.320.0030.00316.54
7.4.300.0040.00416.74
7.4.290.0000.00816.56
7.4.280.0060.00316.64
7.4.270.0000.00716.56
7.4.260.0000.00816.57
7.4.250.0000.00716.70
7.4.240.0070.00016.66
7.4.230.0000.00716.55
7.4.220.0030.01416.68
7.4.210.0050.00916.80
7.4.200.0000.00716.63
7.4.160.0120.00616.30
7.4.150.0100.01017.40
7.4.140.0100.01017.86
7.4.130.0090.00916.56
7.4.120.0060.01116.56
7.4.110.0100.00616.70
7.4.100.0080.00816.59
7.4.90.0110.00616.58
7.4.80.0130.00719.39
7.4.70.0090.00916.39
7.4.60.0030.01416.48
7.4.50.0000.01616.49
7.4.40.0100.00716.77
7.4.30.0090.01316.72
7.4.00.0030.01415.02
7.3.330.0050.00013.07
7.3.320.0000.00513.01
7.3.310.0040.00416.21
7.3.300.0070.00016.27
7.3.290.0030.00316.30
7.3.280.0100.00616.31
7.3.270.0040.01417.40
7.3.260.0070.01016.36
7.3.250.0110.00816.46
7.3.240.0090.00916.26
7.3.230.0140.00616.39
7.3.210.0040.01316.72
7.3.200.0120.00916.50
7.3.190.0150.00616.32
7.3.180.0090.00616.28
7.3.170.0140.00316.53
7.3.160.0060.00916.18
7.3.00.0100.00316.76
7.2.330.0090.00816.58
7.2.320.0080.01216.62
7.2.310.0090.00916.58
7.2.300.0060.01016.52
7.2.290.0030.01316.46
7.2.130.0040.01116.98
7.2.120.0100.00317.02
7.2.110.0000.01216.70
7.2.100.0120.00016.84
7.2.90.0040.00716.94
7.2.80.0100.00316.81
7.2.70.0070.00316.63
7.2.60.0030.00716.59
7.2.50.0080.00316.58
7.2.40.0060.01016.98
7.2.30.0080.00316.88
7.2.20.0050.00516.72
7.2.10.0060.00616.72
7.2.00.0030.01018.00
7.1.250.0040.01115.61
7.1.240.0060.00315.69
7.1.230.0060.00315.91
7.1.220.0030.00615.82
7.1.210.0030.00915.74
7.1.200.0060.00315.82
7.1.190.0090.00315.71
7.1.180.0000.01215.77
7.1.170.0040.00715.87
7.1.160.0060.00615.75
7.1.150.0040.00415.79
7.1.140.0060.00615.89
7.1.130.0000.01415.89
7.1.120.0060.00615.94
7.1.110.0030.00915.89
7.1.100.0050.00916.96
7.1.90.0060.00615.52
7.1.80.0000.01315.81
7.1.70.0050.00616.52
7.1.60.0050.01217.46
7.1.50.0080.00816.36
7.1.40.0070.00415.76
7.1.30.0120.00015.70
7.1.20.0110.00015.75
7.1.10.0040.00715.96
7.1.00.0050.04019.09
7.0.330.0000.00915.31
7.0.320.0000.00815.52
7.0.310.0030.00615.29
7.0.300.0040.00715.08
7.0.290.0030.00315.64
7.0.280.0000.01115.67
7.0.270.0100.00315.50
7.0.260.0040.00715.74
7.0.250.0040.00815.54
7.0.240.0070.00315.58
7.0.230.0030.01015.35
7.0.220.0050.00515.09
7.0.210.0070.00715.57
7.0.200.0390.00515.03
7.0.190.0060.00315.02
7.0.180.0080.00315.42
7.0.170.0040.00715.70
7.0.160.0070.00315.48
7.0.150.0030.01015.20
7.0.140.0040.00715.52
7.0.130.0000.01015.49
7.0.120.0090.00015.52
7.0.110.0070.00315.48
7.0.100.0000.00915.48
7.0.90.0040.00415.43
7.0.80.0040.01115.41
7.0.70.0070.00315.58
7.0.60.0060.04118.53
7.0.50.0100.02016.86
7.0.40.0050.02616.81
7.0.30.0120.04916.86
7.0.20.0100.02416.78
7.0.10.0070.03516.92
7.0.00.0060.04316.86
5.6.380.0070.01014.34
5.6.370.0040.00714.50
5.6.360.0040.00414.13
5.6.350.0120.00014.36
5.6.340.0060.00613.82
5.6.330.0030.00914.36
5.6.320.0060.00613.92
5.6.310.0000.01114.18
5.6.300.0080.00314.02
5.6.290.0060.00314.28
5.6.280.0020.03817.81
5.6.270.0000.01114.25
5.6.260.0090.00314.33
5.6.250.0110.00013.98
5.6.240.0030.00714.06
5.6.230.0070.00314.01
5.6.220.0040.00714.40
5.6.210.0080.04317.40
5.6.200.0050.02216.19
5.6.190.0070.02217.34
5.6.180.0170.03017.35
5.6.170.0080.02517.23
5.6.160.0070.04717.18
5.6.150.0030.04716.23
5.6.140.0060.02116.22
5.6.130.0050.04416.11
5.6.120.0070.02517.69
5.6.110.0070.03817.61
5.6.100.0070.04317.58
5.6.90.0100.03317.71
5.6.80.0100.04017.16
5.6.70.0050.00514.25
5.6.60.0060.00914.33
5.6.50.0040.00714.21
5.6.40.0040.00413.96
5.6.30.0070.00714.17
5.6.20.0070.00014.00
5.6.10.0060.00614.18
5.6.00.0060.00614.04
5.5.380.0050.00310.98
5.5.370.0000.01210.91
5.5.360.0040.00411.04
5.5.350.2050.02415.56
5.5.340.0050.03414.38
5.5.330.0050.02215.59
5.5.320.0260.02315.60
5.5.310.0130.04115.82
5.5.300.0060.04014.39
5.5.290.0090.02814.49
5.5.280.0050.02615.87
5.5.270.0090.04215.79
5.5.260.0070.04515.85
5.5.250.0040.02415.73
5.5.240.0030.03815.55
5.5.230.0040.00810.71
5.5.220.0040.00710.96
5.5.210.0040.00410.73
5.5.200.0040.00410.84
5.5.190.0030.00310.85
5.5.180.0040.00410.84
5.5.170.0000.00710.91
5.5.160.0040.00410.78
5.5.150.0090.00010.75
5.5.140.0050.00210.82
5.5.130.0060.00311.04
5.5.120.0070.00010.73
5.5.110.0040.00410.48
5.5.100.0000.00710.78
5.5.90.0030.00610.63
5.5.80.0000.00710.96
5.5.70.0040.00410.70
5.5.60.0000.00710.82
5.5.50.0030.00310.82
5.5.40.0000.00810.55
5.5.30.0070.00310.85
5.5.20.0040.00410.83
5.5.10.0060.00010.70
5.5.00.0000.00810.90

preferences:
68.96 ms | 401 KiB | 5 Q