3v4l.org

run code in 300+ PHP versions simultaneously
<?php $year = ''; echo (preg_match('/^[0-9]{4}$/', $year)) ? 'yes' : 'no';

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.0040.01816.50
8.3.60.0110.00418.55
8.3.50.0170.00222.87
8.3.40.0090.01218.88
8.3.30.0140.00018.60
8.3.20.0070.00021.85
8.3.10.0040.00423.66
8.3.00.0080.00019.91
8.2.190.0000.01418.66
8.2.180.0070.00716.88
8.2.170.0170.00322.96
8.2.160.0140.00020.38
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00022.13
8.2.120.0040.00426.35
8.2.110.0030.00620.42
8.2.100.0060.00618.16
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0000.01117.63
8.2.60.0030.00617.80
8.2.50.0000.00918.10
8.2.40.0030.00622.18
8.2.30.0000.00819.24
8.2.20.0040.00417.82
8.2.10.0000.00717.88
8.2.00.0070.00017.88
8.1.280.0040.01125.92
8.1.270.0030.00523.85
8.1.260.0000.00828.09
8.1.250.0080.00028.09
8.1.240.0040.00422.14
8.1.230.0090.00317.70
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0060.00317.35
8.1.180.0060.00318.10
8.1.170.0080.00018.59
8.1.160.0040.00422.19
8.1.150.0000.00720.90
8.1.140.0000.00719.44
8.1.130.0000.00717.70
8.1.120.0080.00017.54
8.1.110.0040.00417.52
8.1.100.0070.00017.44
8.1.90.0040.00417.45
8.1.80.0070.00017.55
8.1.70.0030.00317.42
8.1.60.0000.00817.64
8.1.50.0040.00417.61
8.1.40.0040.00417.50
8.1.30.0000.00817.75
8.1.20.0030.00517.73
8.1.10.0000.00817.68
8.1.00.0000.00817.56
8.0.300.0000.00718.77
8.0.290.0000.00816.58
8.0.280.0000.00718.53
8.0.270.0030.00317.19
8.0.260.0060.00017.22
8.0.250.0030.00316.96
8.0.240.0000.00616.95
8.0.230.0050.00317.03
8.0.220.0000.00716.87
8.0.210.0000.00716.82
8.0.200.0000.00716.99
8.0.190.0060.00317.00
8.0.180.0030.00616.95
8.0.170.0040.00416.98
8.0.160.0050.00317.00
8.0.150.0060.00316.89
8.0.140.0000.00816.89
8.0.130.0030.00313.30
8.0.120.0040.00416.89
8.0.110.0040.00416.78
8.0.100.0070.00016.98
8.0.90.0080.00016.86
8.0.80.0080.00816.92
8.0.70.0050.00216.90
8.0.60.0000.00716.97
8.0.50.0050.00216.82
8.0.30.0080.00917.25
8.0.20.0140.00617.42
8.0.10.0070.00016.90
8.0.00.0130.00716.99
7.4.330.0050.00015.08
7.4.320.0030.00316.53
7.4.300.0070.00016.71
7.4.290.0000.00716.59
7.4.280.0000.00816.67
7.4.270.0030.00316.72
7.4.260.0060.00316.71
7.4.250.0050.00216.68
7.4.240.0040.00416.75
7.4.230.0050.00216.84
7.4.220.0060.01316.68
7.4.210.0070.00716.69
7.4.200.0040.00416.62
7.4.160.0050.01416.61
7.4.150.0100.00717.40
7.4.140.0130.00617.86
7.4.130.0090.00916.53
7.4.120.0130.00316.61
7.4.110.0120.00616.54
7.4.100.0090.01516.59
7.4.90.0130.00316.46
7.4.80.0100.00719.39
7.4.70.0150.00016.53
7.4.60.0090.00616.44
7.4.50.0030.00916.55
7.4.40.0100.00616.53
7.4.30.0060.01216.63
7.4.00.0090.00315.00
7.3.330.0000.00513.19
7.3.320.0000.00513.11
7.3.310.0020.00516.36
7.3.300.0000.00816.32
7.3.290.0030.00316.18
7.3.280.0100.00516.28
7.3.270.0090.00917.40
7.3.260.0120.00716.46
7.3.250.0110.00716.50
7.3.240.0100.01316.24
7.3.230.0030.01316.43
7.3.210.0150.00316.38
7.3.200.0110.00616.57
7.3.190.0060.01116.27
7.3.180.0130.00916.43
7.3.170.0130.00416.60
7.3.160.0120.00916.62
7.2.330.0080.00916.71
7.2.320.0060.01116.67
7.2.310.0170.00016.50
7.2.300.0000.02016.82
7.2.290.0120.00316.52
7.2.00.0000.01319.18
7.1.70.0000.01017.30
7.1.60.0130.01319.75
7.1.00.0030.07722.53
7.0.200.0210.00914.90
7.0.90.0200.05320.00
7.0.80.0070.06019.92
7.0.70.0100.07020.00
7.0.60.0100.06320.00
7.0.50.0170.05720.40
7.0.40.0070.08320.36
7.0.30.0170.06320.31
7.0.20.0100.06020.37
7.0.10.0200.05020.39
7.0.00.0100.06320.45
5.6.240.0100.06720.67
5.6.230.0170.07320.75
5.6.220.0200.06020.48
5.6.210.0100.05720.53
5.6.200.0170.05321.11
5.6.190.0170.05021.12
5.6.180.0130.07321.02
5.6.170.0130.08321.07
5.6.160.0170.05321.19
5.6.150.0200.05721.08
5.6.140.0070.06321.01
5.6.130.0070.08020.98
5.6.120.0230.07321.09
5.6.110.0170.06021.11
5.6.100.0230.05721.07
5.6.90.0200.05721.05
5.6.80.0070.05720.49
5.6.70.0030.06020.46
5.6.60.0130.05720.54
5.6.50.0070.06020.41
5.6.40.0230.04020.43
5.6.30.0170.05320.43
5.6.20.0170.06020.43
5.6.10.0130.05320.37
5.6.00.0170.06720.43

preferences:
17.76 ms | 401 KiB | 5 Q