3v4l.org

run code in 300+ PHP versions simultaneously
<?php $phpVersion = phpversion(); $cleansedstring = preg_replace("[^A-Za-z0-9]", "", $phpVersion); echo $cleansedstring;

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)
7.2.00.0060.00919.31
7.1.100.0030.00718.19
7.1.70.0000.01517.41
7.1.60.0070.01719.48
7.1.50.0000.01116.91
7.1.00.0000.07722.47
7.0.200.0200.00714.61
7.0.100.0500.08019.99
7.0.90.0400.07719.96
7.0.80.0030.08019.87
7.0.70.0370.06320.08
7.0.60.0300.06719.84
7.0.50.0430.07720.34
7.0.40.0170.07720.11
7.0.30.0170.05020.16
7.0.20.0070.04720.18
7.0.10.0130.04720.06
7.0.00.0100.08320.18
5.6.280.0000.05721.11
5.6.250.0200.06320.48
5.6.240.0070.04320.58
5.6.230.0100.07720.66
5.6.220.0030.08720.59
5.6.210.0030.06720.70
5.6.200.0130.07720.96
5.6.190.0100.08721.16
5.6.180.0070.08020.93
5.6.170.0100.08021.08
5.6.160.0100.06021.01
5.6.150.0070.08321.16
5.6.140.0070.06721.13
5.6.130.0170.04320.94
5.6.120.0030.09320.95
5.6.110.0070.05321.01
5.6.100.0030.05021.07
5.6.90.0030.04321.14
5.6.80.0070.07720.38
5.6.70.0100.04320.37
5.6.60.0100.06720.38
5.6.50.0030.08720.46
5.6.40.0070.04720.52
5.6.30.0070.04320.41
5.6.20.0230.04720.35
5.6.10.0000.04720.52
5.6.00.0130.03320.41
5.5.380.0030.08720.39
5.5.370.0100.05320.30
5.5.360.0100.08020.39
5.5.350.0200.07720.32
5.5.340.0130.04020.84
5.5.330.0200.07320.64
5.5.320.0070.08020.90
5.5.310.0000.06320.85
5.5.300.0170.04720.91
5.5.290.0070.08320.79
5.5.280.0070.09020.88
5.5.270.0030.08020.83
5.5.260.0070.08320.86
5.5.250.0100.06320.69
5.5.240.0130.07020.28
5.5.230.0100.07320.27
5.5.220.0100.07720.20
5.5.210.0030.08320.20
5.5.200.0000.05320.07
5.5.190.0170.07320.23
5.5.180.0100.07020.23
5.5.160.0030.04320.23
5.5.150.0000.04320.23
5.5.140.0030.04020.26
5.5.130.0030.04720.26
5.5.120.0100.03020.20
5.5.110.0000.05020.19
5.5.100.0100.03720.10
5.5.90.0100.03320.09
5.5.80.0100.03320.16
5.5.70.0000.04320.05
5.5.60.0030.03720.13
5.5.50.0000.04320.14
5.5.40.0030.03720.13
5.5.30.0030.04020.04
5.5.20.0030.04020.13
5.5.10.0070.04320.11
5.5.00.0030.04020.07

preferences:
20.82 ms | 401 KiB | 5 Q