3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = preg_replace('\text-\', '', 'text-success'); var_dump($b);

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)
5.6.80.0030.08020.39
5.5.240.0230.06020.27
5.4.400.0300.06318.67
5.4.390.0470.04718.61
5.4.380.0530.05718.80
5.4.370.0470.04718.80
5.4.360.0330.05318.54
5.4.350.0230.07318.62
5.4.340.0500.05318.72
5.4.320.0330.06318.51
5.4.310.0470.05318.72
5.4.300.0530.07018.55
5.4.290.0600.07718.72
5.4.280.0670.06718.76
5.4.270.0530.07018.74
5.4.260.0430.05718.64
5.4.250.0400.06718.78
5.4.240.0570.06018.80
5.4.230.0470.06018.73
5.4.220.0600.06318.71
5.4.210.0430.06718.45
5.4.200.0330.06316.72
5.4.190.0300.05318.57
5.4.180.0430.03718.54
5.4.170.0430.08018.50
5.4.160.0600.06318.82
5.4.150.0470.08018.81
5.4.140.0430.07316.32
5.4.130.0530.05716.29
5.4.120.0430.06316.33
5.4.110.0330.06016.15
5.4.100.0500.04716.30
5.4.90.0270.06016.27
5.4.80.0200.07016.30
5.4.70.0430.06016.31
5.4.60.0230.07016.17
5.4.50.0370.06016.26
5.4.40.0300.04716.17
5.4.30.0470.04716.25
5.4.20.0300.06016.29
5.4.10.0270.05316.29
5.4.00.0400.05015.66
5.3.290.0230.08014.67
5.3.280.0270.07014.67
5.3.270.0330.05314.52
5.3.260.0300.05014.55
5.3.250.0270.05314.61
5.3.240.0200.08014.52
5.3.230.0400.05714.53
5.3.220.0230.07714.55
5.3.210.0370.05014.55
5.3.200.0230.06314.64
5.3.190.0430.05714.53
5.3.180.0300.05314.57
5.3.170.0370.04014.46
5.3.160.0230.05714.67
5.3.150.0170.06314.53
5.3.140.0400.07014.50
5.3.130.0400.07014.42
5.3.120.0370.05714.46
5.3.110.0330.06014.53
5.3.100.0330.06714.02
5.3.90.0570.06013.99
5.3.80.0400.05714.00
5.3.70.0470.07714.00
5.3.60.0530.06314.09
5.3.50.0500.06314.02
5.3.40.0500.06314.02
5.3.30.0400.06713.86
5.3.20.0670.05013.60
5.3.10.0500.04713.57
5.3.00.0600.04313.67
5.2.170.0470.03711.10
5.2.160.0430.04711.07
5.2.150.0500.05311.12
5.2.140.0500.05711.18
5.2.130.0600.05011.15
5.2.120.0300.06011.07
5.2.110.0500.05711.09
5.2.100.0400.05011.06
5.2.90.0370.05311.03
5.2.80.0400.04011.02
5.2.70.0370.04711.07
5.2.60.0370.04011.08
5.2.50.0400.04311.02
5.2.40.0400.04011.02
5.2.30.0400.03310.94
5.2.20.0170.05011.00
5.2.10.0470.04010.84
5.2.00.0430.06010.78
5.1.60.0230.05010.01
5.1.50.0330.04010.00
5.1.40.0400.0479.93
5.1.30.0400.04310.44
5.1.20.0230.04310.42
5.1.10.0170.05010.06
5.1.00.0230.05010.20
5.0.50.0130.0338.52
5.0.40.0170.0338.55
5.0.30.0130.0538.27
5.0.20.0130.0308.18
5.0.10.0130.0308.18
5.0.00.0100.0538.33
4.4.90.0130.0305.92
4.4.80.0230.0205.86
4.4.70.0170.0335.88
4.4.60.0230.0335.90
4.4.50.0070.0275.90
4.4.40.0200.0435.90
4.4.30.0230.0205.92
4.4.20.0170.0205.88
4.4.10.0200.0275.97
4.4.00.0100.0435.95
4.3.110.0100.0275.79
4.3.100.0130.0275.74
4.3.90.0200.0235.86
4.3.80.0130.0375.81
4.3.70.0230.0275.77
4.3.60.0230.0235.89
4.3.50.0170.0305.80
4.3.40.0230.0475.80
4.3.30.0100.0275.15
4.3.20.0070.0305.15
4.3.10.0100.0235.15
4.3.00.0000.0236.80

preferences:
146.54 ms | 1394 KiB | 7 Q