3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output = '<div class="center"> <table border="0" cellpadding="3" width="600"> <tr><td class="e">ctype functions </td><td class="v">enabled </td></tr> </table><br /> <table></table>'; $output1 = preg_replace('#<table[^>]*>#', '<table class="table table-striped adminlist">', $output); echo $output[1][0] . PHP_EOL . PHP_EOL . $output1;

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.0170.00318.68
8.3.50.0090.00822.05
8.3.40.0070.00718.89
8.3.30.0140.00018.90
8.3.20.0000.00720.29
8.3.10.0000.00823.64
8.3.00.0040.00421.02
8.2.180.0180.00018.30
8.2.170.0000.01422.96
8.2.160.0170.00320.53
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0040.00419.61
8.2.110.0030.00621.11
8.2.100.0090.00317.84
8.2.90.0000.00719.41
8.2.80.0030.00517.97
8.2.70.0030.00717.88
8.2.60.0070.00217.80
8.2.50.0090.00318.07
8.2.40.0080.00018.34
8.2.30.0050.00318.30
8.2.20.0000.00817.90
8.2.10.0030.00618.14
8.2.00.0030.00517.90
8.1.280.0120.00925.92
8.1.270.0040.00423.89
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00822.24
8.1.230.0040.00720.88
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.48
8.1.190.0000.00817.25
8.1.180.0080.00018.10
8.1.170.0000.00818.79
8.1.160.0040.00421.98
8.1.150.0080.00018.73
8.1.140.0000.00717.60
8.1.130.0030.00519.55
8.1.120.0050.00317.53
8.1.110.0040.00417.56
8.1.100.0050.00317.51
8.1.90.0040.00417.49
8.1.80.0000.00817.50
8.1.70.0030.00317.61
8.1.60.0070.00517.75
8.1.50.0060.00317.71
8.1.40.0050.00517.72
8.1.30.0030.00617.75
8.1.20.0080.00017.77
8.1.10.0060.00317.64
8.1.00.0090.00017.66
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0020.00518.53
8.0.270.0040.00417.27
8.0.260.0060.00017.17
8.0.250.0000.00717.01
8.0.240.0070.00017.09
8.0.230.0000.00717.12
8.0.220.0080.00017.06
8.0.210.0030.00517.08
8.0.200.0030.00517.09
8.0.190.0080.00317.09
8.0.180.0040.00416.93
8.0.170.0000.00817.10
8.0.160.0070.00017.11
8.0.150.0000.00717.03
8.0.140.0040.00416.97
8.0.130.0000.00813.48
8.0.120.0000.00816.98
8.0.110.0040.00416.90
8.0.100.0000.00717.06
8.0.90.0000.00717.03
8.0.80.0070.01016.99
8.0.70.0040.00416.91
8.0.60.0050.00217.15
8.0.50.0070.00017.01
8.0.30.0070.01317.17
8.0.20.0080.01617.40
8.0.10.0000.00717.00
8.0.00.0070.01216.86
7.4.330.0020.00215.16
7.4.320.0030.00316.64
7.4.300.0000.00716.70
7.4.290.0000.00716.57
7.4.280.0000.00716.79
7.4.270.0000.00716.73
7.4.260.0000.00716.70
7.4.250.0000.00816.78
7.4.240.0050.00216.80
7.4.230.0040.00416.64
7.4.220.0130.00616.80
7.4.210.0090.00916.76
7.4.200.0030.00316.55
7.4.160.0100.00716.52
7.4.150.0090.00917.40
7.4.140.0130.00517.86
7.4.130.0130.00516.66
7.4.120.0090.00916.64
7.4.110.0160.00616.70
7.4.100.0110.00616.71
7.4.90.0150.00316.52
7.4.80.0120.00619.39
7.4.70.0160.00016.63
7.4.60.0000.01816.70
7.4.50.0050.00016.58
7.4.40.0040.01216.54
7.4.30.0100.01016.66
7.4.00.0080.00715.12
7.3.330.0080.00013.30
7.3.320.0000.00513.27
7.3.310.0000.00716.53
7.3.300.0030.00316.48
7.3.290.0100.01016.38
7.3.280.0080.01116.49
7.3.270.0060.01217.40
7.3.260.0140.00816.52
7.3.250.0100.00716.64
7.3.240.0040.01316.51
7.3.230.0070.01016.74
7.3.210.0130.00316.61
7.3.200.0060.01319.39
7.3.190.0090.01216.42
7.3.180.0100.00616.50
7.3.170.0130.00316.71
7.3.160.0090.01216.57
7.3.120.0040.01314.97
7.3.110.0060.00914.66
7.3.100.0030.01015.06
7.3.90.0060.01215.12
7.3.80.0100.00015.27
7.3.70.0070.00714.86
7.3.60.0090.00915.01
7.3.50.0100.00314.95
7.3.40.0070.00715.18
7.3.30.0070.00715.18
7.3.20.0030.00916.84
7.3.10.0060.00816.87
7.3.00.0070.00516.64
7.2.330.0100.01316.79
7.2.320.0140.00416.70
7.2.310.0060.01016.70
7.2.300.0100.00616.58
7.2.290.0170.00016.95
7.2.250.0060.01315.18
7.2.240.0040.01415.13
7.2.230.0080.00415.27
7.2.220.0070.01014.81
7.2.210.0000.01014.86
7.2.200.0040.01115.16
7.2.190.0100.00015.19
7.2.180.0030.01115.30
7.2.170.0070.00415.07
7.2.130.0000.01317.12
7.2.120.0070.00717.02
7.2.110.0060.00917.27
7.2.100.0110.00617.11
7.2.90.0160.00317.06
7.2.80.0070.00717.26
7.2.70.0100.00617.12
7.2.60.0070.00717.07
7.2.50.0040.00717.05
7.2.40.0060.00617.09
7.2.30.0030.00617.00
7.2.20.0030.00917.33
7.2.10.0150.00016.77
7.2.00.0100.00318.41
7.1.330.0070.00716.17
7.1.320.0100.01015.74
7.1.310.0070.01016.02
7.1.300.0040.00415.95
7.1.290.0110.00415.95
7.1.280.0040.00716.20
7.1.270.0000.01315.67
7.1.260.0000.01415.57
7.1.250.0030.00915.88
7.1.100.0030.00618.24
7.1.70.0030.01317.39
7.1.60.0070.01719.70
7.1.50.0070.01817.13
7.1.00.0030.07722.31
7.0.200.0070.00017.11
7.0.140.0130.06021.97
7.0.90.0170.04719.91
7.0.80.0100.07719.99
7.0.70.0100.05319.92
7.0.60.0030.06320.07
7.0.50.0100.08320.30
7.0.40.0100.08320.09
7.0.30.0100.08720.05
7.0.20.0100.05720.05
7.0.10.0130.07320.11
7.0.00.0100.08019.93
5.6.280.0030.07321.09
5.6.230.0100.07720.62
5.6.220.0070.05720.48
5.6.210.0100.07720.69
5.6.200.0070.08020.95
5.6.190.0130.07320.89
5.6.180.0100.05320.93
5.6.170.0130.08021.00
5.6.160.0100.08721.02
5.6.150.0100.05021.02
5.6.140.0030.04321.00
5.6.130.0070.04021.13
5.6.120.0100.08021.09
5.6.110.0030.06021.00
5.6.100.0000.07321.02
5.6.90.0030.08320.92
5.6.80.0000.05720.33
5.6.70.0070.04020.39
5.6.60.0070.08020.29
5.6.50.0070.09020.39
5.6.40.0130.07720.36
5.6.30.0030.08320.43
5.6.20.0100.04020.52
5.6.10.0000.04320.31
5.6.00.0070.04020.29
5.5.370.0130.08320.41
5.5.360.0130.07720.38
5.5.350.0070.08320.41
5.5.340.0100.07320.77
5.5.330.0000.08320.91
5.5.320.0070.07720.87
5.5.310.0130.06320.91
5.5.300.0170.07020.87
5.5.290.0070.09020.87
5.5.280.0070.08720.63
5.5.270.0030.07020.63
5.5.260.0030.09020.84
5.5.250.0070.08320.64
5.5.240.0100.04720.17
5.5.230.0170.06720.29
5.5.220.0100.07720.27
5.5.210.0130.07020.16
5.5.200.0130.06720.24
5.5.190.0100.06720.07
5.5.180.0070.05720.12
5.5.160.0000.04720.21
5.5.150.0070.07720.22
5.5.140.0230.06020.23
5.5.130.0070.06720.21
5.5.120.0100.05319.98
5.5.110.0000.08320.16
5.5.100.0070.07320.16
5.5.90.0130.05719.96
5.5.80.0070.06320.04
5.5.70.0070.08020.05
5.5.60.0170.06720.04
5.5.50.0130.07319.95
5.5.40.0170.06720.05
5.5.30.0100.07320.14
5.5.20.0230.06020.07
5.5.10.0130.07020.09
5.5.00.0030.04720.00
5.4.450.0100.06319.31
5.4.440.0100.04719.42
5.4.430.0130.07319.38
5.4.420.0100.05019.45
5.4.410.0100.07319.18
5.4.400.0130.05318.82
5.4.390.0070.06019.05
5.4.380.0030.07719.02
5.4.370.0000.07719.12
5.4.360.0070.07719.07
5.4.350.0100.05719.14
5.4.340.0100.05718.92
5.4.320.0030.07719.09
5.4.310.0100.07019.03
5.4.300.0070.07718.78
5.4.290.0000.08319.10
5.4.280.0170.07019.09
5.4.270.0200.03719.07
5.4.260.0030.08319.05
5.4.250.0030.07719.04
5.4.240.0030.08319.02
5.4.230.0070.04718.80
5.4.220.0070.07719.12
5.4.210.0030.05318.95
5.4.200.0130.06718.97
5.4.190.0100.07319.13
5.4.180.0070.05719.02
5.4.170.0030.07718.91
5.4.160.0030.04318.95
5.4.150.0070.04719.00
5.4.140.0070.03316.29
5.4.130.0000.05016.27
5.4.120.0030.07316.12
5.4.110.0030.06316.30
5.4.100.0130.06716.37
5.4.90.0100.07016.30
5.4.80.0030.07716.31
5.4.70.0070.07016.29
5.4.60.0100.07316.20
5.4.50.0070.07316.35
5.4.40.0170.06316.24
5.4.30.0030.07716.33
5.4.20.0100.06716.39
5.4.10.0070.07316.39
5.4.00.0030.07315.81
5.3.290.0100.04314.61
5.3.280.0100.06714.60
5.3.270.0100.07714.51
5.3.260.0030.07714.43
5.3.250.0070.03314.42
5.3.240.0100.07014.59
5.3.230.0100.07314.50
5.3.220.0070.04014.55
5.3.210.0130.06714.43
5.3.200.0100.07714.47
5.3.190.0200.06314.42
5.3.180.0100.06314.50
5.3.170.0070.07714.55
5.3.160.0070.07314.41
5.3.150.0030.08014.56
5.3.140.0200.06314.54
5.3.130.0070.08014.52
5.3.120.0030.07314.55
5.3.110.0100.06714.39
5.3.100.0170.07014.04
5.3.90.0000.08014.00
5.3.80.0070.07714.01
5.3.70.0070.07013.98
5.3.60.0100.07013.96
5.3.50.0100.07013.90
5.3.40.0070.07713.90
5.3.30.0100.07313.90
5.3.20.0030.07313.66
5.3.10.0130.06313.64
5.3.00.0130.06313.57
5.2.170.0070.06313.57
5.2.160.0030.06313.57
5.2.150.0070.06013.57
5.2.140.0030.05713.57
5.2.130.0000.06313.57
5.2.120.0100.05013.57
5.2.110.0170.05013.57
5.2.100.0130.05013.57
5.2.90.0030.06013.57
5.2.80.0030.06013.57
5.2.70.0100.04313.57
5.2.60.0130.05313.57
5.2.50.0070.04313.57
5.2.40.0070.05713.57
5.2.30.0100.05713.57
5.2.20.0030.06313.57
5.2.10.0030.06013.57
5.2.00.0070.06013.57
5.1.60.0000.05713.57
5.1.50.0170.04713.57
5.1.40.0030.05713.57
5.1.30.0070.05713.57
5.1.20.0100.05313.57
5.1.10.0030.03713.57
5.1.00.0000.03713.57
5.0.50.0030.03313.57
5.0.40.0030.03713.57
5.0.30.0070.05713.57
5.0.20.0000.04713.57
5.0.10.0030.04013.57
5.0.00.0000.03313.57
4.4.90.0070.01713.57
4.4.80.0030.03013.57
4.4.70.0030.03713.57
4.4.60.0030.03713.57
4.4.50.0030.03713.57
4.4.40.0000.05313.57
4.4.30.0000.03713.57
4.4.20.0000.03713.57
4.4.10.0070.01313.57
4.4.00.0030.03013.57
4.3.110.0000.02713.57
4.3.100.0000.02713.57
4.3.90.0030.02013.57
4.3.80.0070.02013.57
4.3.70.0000.01713.57
4.3.60.0030.01313.57
4.3.50.0000.01313.57
4.3.40.0000.02013.57
4.3.30.0030.01313.57
4.3.20.0000.03313.57
4.3.10.0000.02713.57
4.3.00.0000.01313.57

preferences:
43.89 ms | 401 KiB | 5 Q