3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo "\"here\""; //$class = "ThisIsAClassName"; //$name = preg_replace('#^_#','',implode('_',preg_split('/(?=[A-Z])/',$class))); //echo "and the resulting name is $name"; for ($i =0 ; $i < 10000; $i++){ preg_replace('"#(\[{2})|(\]{2})#','',"[[admin]] [[or something]]"); //str_replace("[[",'',str_replace("]]",'',"[[admin]] [[or something]]")); } ?>

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.70.0120.00318.06
8.3.60.0140.00718.18
8.3.50.0120.01221.96
8.3.40.0090.00618.57
8.3.30.0140.00018.88
8.3.20.0040.00420.16
8.3.10.0000.00821.78
8.3.00.0040.00418.84
8.2.190.0130.00716.63
8.2.180.0130.00316.63
8.2.170.0120.00322.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00422.27
8.2.110.0060.00321.03
8.2.100.0090.00317.84
8.2.90.0040.00418.03
8.2.80.0040.00417.97
8.2.70.0000.00817.92
8.2.60.0080.00018.09
8.2.50.0080.00018.10
8.2.40.0040.00420.37
8.2.30.0040.00420.71
8.2.20.0070.00017.72
8.2.10.0070.00017.99
8.2.00.0000.00817.57
8.1.280.0150.00025.92
8.1.270.0060.00318.77
8.1.260.0070.00026.35
8.1.250.0090.00628.09
8.1.240.0050.00520.69
8.1.230.0070.00420.86
8.1.220.0000.00917.74
8.1.210.0050.00318.79
8.1.200.0070.00317.22
8.1.190.0080.00019.01
8.1.180.0000.00818.10
8.1.170.0050.00318.51
8.1.160.0070.00018.93
8.1.150.0000.00718.88
8.1.140.0040.00417.52
8.1.130.0030.00317.80
8.1.120.0000.00717.48
8.1.110.0070.00017.50
8.1.100.0070.00017.47
8.1.90.0070.00017.48
8.1.80.0040.00417.46
8.1.70.0000.00717.34
8.1.60.0000.00817.57
8.1.50.0090.00017.49
8.1.40.0040.00417.51
8.1.30.0040.00417.56
8.1.20.0040.00417.52
8.1.10.0040.00417.39
8.1.00.0040.00417.36
8.0.300.0000.00719.78
8.0.290.0050.00316.58
8.0.280.0030.00318.21
8.0.270.0000.00717.03
8.0.260.0060.00017.05
8.0.250.0080.00016.81
8.0.240.0030.00316.76
8.0.230.0000.00716.93
8.0.220.0040.00416.64
8.0.210.0000.00716.85
8.0.200.0030.00316.84
8.0.190.0080.00016.84
8.0.180.0040.00416.80
8.0.170.0030.00716.91
8.0.160.0040.00416.73
8.0.150.0000.00716.78
8.0.140.0040.00416.75
8.0.130.0030.00313.29
8.0.120.0000.00816.76
8.0.110.0080.00016.81
8.0.100.0000.00716.71
8.0.90.0040.00416.72
8.0.80.0170.00016.84
8.0.70.0040.00416.83
8.0.60.0080.00016.82
8.0.50.0070.00016.63
8.0.30.0120.00817.09
8.0.20.0130.00817.40
8.0.10.0080.00016.73
8.0.00.0060.01816.66
7.4.330.0050.00015.03
7.4.320.0030.00316.33
7.4.300.0000.00816.21
7.4.290.0000.00916.30
7.4.280.0060.00316.31
7.4.270.0040.00416.36
7.4.260.0040.00416.29
7.4.250.0040.00416.36
7.4.240.0060.00216.37
7.4.230.0030.00316.06
7.4.220.0080.01216.45
7.4.210.0090.01216.38
7.4.200.0040.00416.20
7.4.160.0180.01116.38
7.4.150.0130.00917.40
7.4.140.0100.01117.86
7.4.130.0130.01116.41
7.4.120.0130.00916.45
7.4.110.0150.01916.30
7.4.100.0120.00916.46
7.4.90.0120.01216.39
7.4.80.0040.01719.39
7.4.70.0100.01016.39
7.4.60.0110.00816.26
7.4.50.0090.00016.29
7.4.40.0090.00916.44
7.4.30.0100.01016.44
7.4.00.0030.01314.89
7.3.330.0060.00313.23
7.3.320.0030.00313.17
7.3.310.0030.00316.26
7.3.300.0050.00216.29
7.3.290.0030.00316.17
7.3.280.0060.01416.18
7.3.270.0060.01317.40
7.3.260.0120.00916.53
7.3.250.0170.00616.31
7.3.240.0090.01216.18
7.3.230.0130.01016.39
7.3.210.0230.00316.10
7.3.200.0220.00419.39
7.3.190.0120.01216.21
7.3.180.0070.01016.07
7.3.170.0030.01416.39
7.3.160.0080.02316.21
7.2.330.0120.01216.53
7.2.320.0110.01416.63
7.2.310.0200.00016.55
7.2.300.0070.01816.60
7.2.290.0100.01016.45
7.2.60.0140.00316.70
7.2.00.0180.00419.13
7.1.200.0000.01415.80
7.1.100.0030.00517.93
7.1.70.0150.00016.73
7.1.60.0070.01719.57
7.1.50.0060.00617.05
7.1.00.0070.07322.45
7.0.200.0000.01116.86
7.0.140.0000.06322.04
7.0.60.0070.08019.92
7.0.50.0170.07017.78
7.0.40.0030.05719.79
7.0.30.0270.03019.94
7.0.20.0300.08019.74
7.0.10.0170.08019.72
7.0.00.0030.09319.73
5.6.280.0070.07321.09
5.6.210.0170.07020.64
5.6.200.0070.06718.05
5.6.190.0100.08020.29
5.6.180.0100.04720.33
5.6.170.0300.04720.29
5.6.160.0100.07720.24
5.6.150.0000.06018.18
5.6.140.0070.08018.02
5.6.130.0070.08718.15
5.6.120.0070.05321.01
5.6.110.0100.08020.98
5.6.100.0070.06320.95
5.6.90.0070.04021.00
5.6.80.0070.06020.37
5.5.350.0130.07320.49
5.5.340.0170.06717.93
5.5.330.0100.03720.05
5.5.320.0300.07320.18
5.5.310.0200.03720.22
5.5.300.0030.04017.93
5.5.290.0100.07717.73
5.5.280.0070.08720.79
5.5.270.0270.06320.84
5.5.260.0170.07020.79
5.5.250.0100.05020.57
5.5.240.0370.06320.35
5.4.450.0170.07719.07
5.4.440.0270.06719.18
5.4.430.0400.03719.14
5.4.420.0300.06019.32
5.4.410.0230.05019.25
5.4.400.0270.07319.01
5.4.390.0000.08318.95
5.4.380.0300.05318.66
5.4.370.0400.05318.61
5.4.360.0400.06018.65
5.4.350.0400.06318.67
5.4.340.0400.05718.67
5.4.320.0330.05318.64
5.4.310.0370.04718.50
5.4.300.0400.05318.62
5.4.290.0230.06318.61
5.4.280.0370.06718.48
5.4.270.0470.05018.66
5.4.260.0370.06018.68
5.4.250.0330.05718.56
5.4.240.0400.05718.61
5.4.230.0330.05718.50
5.4.220.0330.05318.61
5.4.210.0430.05718.48
5.4.200.0400.04316.55
5.4.190.0300.07018.47
5.4.180.0400.06018.44
5.4.170.0530.04318.49
5.4.160.0630.03318.52
5.4.150.0470.05018.67
5.4.140.0530.04316.04
5.4.130.0330.06716.18
5.4.120.0300.05316.25
5.4.110.0230.06016.29
5.4.100.0400.07316.15
5.4.90.0400.06316.29
5.4.80.0500.05016.20
5.4.70.0300.05716.27
5.4.60.0270.05316.13
5.4.50.0270.05016.13
5.4.40.0300.05716.26
5.4.30.0270.05016.20
5.4.20.0230.06716.10
5.4.10.0300.04716.08

preferences:
41.46 ms | 401 KiB | 5 Q