3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data="I want a playstation5 For my Birthday 9 me, this is my plan"; $data1=preg_match("/^[0-9]{3}-[0-9]{2,4}$/", $data);

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.0110.00416.34
8.3.50.0100.01018.18
8.3.40.0120.00419.09
8.3.30.0090.00618.84
8.3.20.0040.00424.18
8.3.10.0060.00324.66
8.3.00.0040.00426.16
8.2.180.0070.01025.92
8.2.170.0070.01018.79
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0070.00026.16
8.2.110.0040.00422.26
8.2.100.0060.00617.84
8.2.90.0040.00420.42
8.2.80.0050.00318.72
8.2.70.0060.00317.63
8.2.60.0110.00017.93
8.2.50.0030.00618.07
8.2.40.0030.00619.94
8.2.30.0040.00417.82
8.2.20.0070.00019.32
8.2.10.0040.00418.94
8.2.00.0000.00719.26
8.1.280.0070.00725.92
8.1.270.0080.00623.99
8.1.260.0080.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00020.23
8.1.230.0030.00717.77
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.48
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0060.00318.78
8.1.160.0070.00018.71
8.1.150.0000.00718.72
8.1.140.0050.00317.50
8.1.130.0000.00918.82
8.1.120.0000.00717.43
8.1.110.0000.00817.50
8.1.100.0000.01017.54
8.1.90.0030.00317.44
8.1.80.0000.00817.52
8.1.70.0030.00317.55
8.1.60.0000.00717.61
8.1.50.0060.00317.59
8.1.40.0040.00417.59
8.1.30.0040.00417.66
8.1.20.0040.00417.60
8.1.10.0000.00817.54
8.1.00.0040.00417.41
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.31
8.0.270.0030.00616.85
8.0.260.0000.00818.35
8.0.250.0030.00316.89
8.0.240.0030.00317.04
8.0.230.0000.00717.02
8.0.220.0070.00017.01
8.0.210.0000.00717.02
8.0.200.0000.00716.99
8.0.190.0080.00017.00
8.0.180.0090.00316.92
8.0.170.0040.00416.95
8.0.160.0040.00416.86
8.0.150.0000.00816.90
8.0.140.0030.00516.80
8.0.130.0060.00013.36
8.0.120.0080.00016.82
8.0.110.0000.00716.86
8.0.100.0050.00216.91
8.0.90.0000.00816.93
8.0.80.0040.00416.93
8.0.70.0050.00316.93
8.0.60.0000.00716.87
8.0.50.0030.00616.88
8.0.30.0070.00016.80
8.0.20.0000.00717.07
8.0.10.0070.00017.05
8.0.00.0040.00417.12
7.4.330.0000.00515.55
7.4.320.0060.00016.78
7.4.300.0020.00516.55
7.4.290.0070.00016.52
7.4.280.0030.00616.61
7.4.270.0040.00416.75
7.4.260.0030.00313.30
7.4.250.0000.00716.68
7.4.240.0070.00016.64
7.4.230.0000.00716.55
7.4.220.0070.00016.60
7.4.210.0040.00416.66
7.4.200.0030.00316.66
7.4.190.0000.00816.81
7.4.180.0030.00316.63
7.4.160.0030.00316.73
7.4.150.0030.00516.73
7.4.140.0000.00816.67
7.4.130.0000.00816.55
7.4.120.0030.00616.59
7.4.110.0000.00716.59
7.4.100.0070.00016.85
7.4.90.0030.00316.57
7.4.80.0030.00316.67
7.4.70.0000.00716.57
7.4.60.0000.00716.46
7.4.50.0030.00316.40
7.4.40.0030.00516.38
7.4.30.0030.00316.61
7.4.20.0000.00816.45
7.4.10.0000.00716.59
7.4.00.0050.00316.45
7.3.330.0030.00316.33
7.3.320.0030.00313.02
7.3.310.0030.00616.23
7.3.300.0000.00716.35
7.3.290.0030.00316.32
7.3.280.0000.00716.28
7.3.270.0040.00416.11
7.3.260.0070.00016.32
7.3.250.0070.00016.20
7.3.240.0030.00316.41
7.3.230.0070.00016.20
7.3.220.0040.00416.05
7.3.210.0030.00316.14
7.3.200.0070.00016.09
7.3.190.0030.00516.14
7.3.180.0000.00816.14
7.3.170.0030.00316.25
7.3.160.0030.00316.14
7.3.150.0040.00416.21
7.3.140.0030.00316.27
7.3.130.0060.00016.06
7.3.120.0000.00916.36
7.3.110.0070.00016.02
7.3.100.0000.00715.98
7.3.90.0040.00416.37
7.3.80.0030.00316.13
7.3.70.0000.00616.09
7.3.60.0000.00716.23
7.3.50.0000.00716.31
7.3.40.0000.00716.33
7.3.30.0040.00416.43
7.3.20.0030.00318.05
7.3.10.0130.00718.07
7.3.00.0030.00317.97

preferences:
58.84 ms | 401 KiB | 5 Q