3v4l.org

run code in 300+ PHP versions simultaneously
<?php $zzfile = random_bytes(100); var_dump($zzfile); $filename = basename($zzfile); var_dump(preg_match('#\.(.+)$#', $filename, $matches)); var_dump($matches);

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.0050.00519.41
7.1.100.0000.01418.41
7.1.70.0000.01517.28
7.1.60.0140.01119.28
7.1.50.0060.00617.05
7.1.00.0030.07722.33
7.0.200.0090.00416.68
7.0.100.0470.07019.88
7.0.90.0030.08719.95
7.0.80.0170.07019.88
7.0.70.0400.06719.72
7.0.60.0030.06719.88
7.0.50.0030.08020.25
7.0.40.0030.08020.08
7.0.30.0030.08719.90
7.0.20.0200.07020.05
7.0.10.0030.08720.05
7.0.00.0130.07720.05
5.6.280.0030.06720.77
5.6.250.0100.08020.57
5.6.240.0100.07020.43
5.6.230.0200.04320.54
5.6.220.0100.08020.53
5.6.210.0030.04320.54
5.6.200.0130.07021.06
5.6.190.0100.07020.95
5.6.180.0030.08020.89
5.6.170.0200.05321.05
5.6.160.0030.08320.95
5.6.150.0030.08321.07
5.6.140.0070.08721.03
5.6.130.0100.08020.98
5.6.120.0070.09320.96
5.6.110.0170.06720.94
5.6.100.0100.07320.84
5.6.90.0130.07320.97
5.6.80.0130.05020.41
5.6.70.0200.07020.41
5.6.60.0130.07020.25
5.6.50.0100.06720.36
5.6.40.0100.04720.35
5.6.30.0170.07020.25
5.6.20.0070.03320.26
5.6.10.0200.03720.31
5.6.00.0130.07720.33
5.5.380.0130.06720.35
5.5.370.0100.05320.30
5.5.360.0070.09020.25
5.5.350.0130.05320.41
5.5.340.0030.05020.84
5.5.330.0100.07320.87
5.5.320.0070.08020.83
5.5.310.0030.07720.63
5.5.300.0070.07320.87
5.5.290.0100.07020.86
5.5.280.0170.07720.70
5.5.270.0070.08720.55
5.5.260.0070.08020.82
5.5.250.0100.07720.64
5.5.240.0070.06720.16
5.5.230.0100.05720.18
5.5.220.0130.06720.18
5.5.210.0200.06320.18
5.5.200.0030.07020.20
5.5.190.0100.03720.10
5.5.180.0130.03320.22
5.5.160.0170.02720.08
5.5.150.0130.06020.09
5.5.140.0030.04720.02
5.5.130.0070.06020.19
5.5.120.0130.02720.17
5.5.110.0030.05020.18
5.5.100.0070.07319.92
5.5.90.0100.07020.10
5.5.80.0100.06019.89
5.5.70.0000.06320.00
5.5.60.0100.05720.00
5.5.50.0000.08720.05
5.5.40.0030.07020.04
5.5.30.0030.05720.02
5.5.20.0070.03320.03
5.5.10.0100.07320.06
5.5.00.0130.06320.02

preferences:
31.67 ms | 401 KiB | 5 Q