3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/^([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*[\/\\\\]?)*[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/D'; $class = 'Foo'; var_dump(preg_match($pattern, $class));

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.0150.00016.38
8.3.50.0110.00416.51
8.3.40.0120.00918.95
8.3.30.0110.00418.92
8.3.20.0040.00420.07
8.3.10.0050.00323.66
8.3.00.0040.00422.51
8.2.180.0070.01518.66
8.2.170.0140.00022.96
8.2.160.0110.00319.16
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0080.00022.22
8.2.120.0030.00626.35
8.2.110.0060.00321.25
8.2.100.0040.00718.03
8.2.90.0040.00419.22
8.2.80.0060.00317.97
8.2.70.0040.00817.75
8.2.60.0060.00317.68
8.2.50.0000.00818.10
8.2.40.0050.00320.64
8.2.30.0000.00819.27
8.2.20.0040.00417.82
8.2.10.0060.00318.14
8.2.00.0000.00717.70
8.1.280.0070.00725.92
8.1.270.0060.00323.92
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0050.00520.83
8.1.230.0060.00617.95
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0030.00617.47
8.1.180.0000.00818.10
8.1.170.0060.00318.71
8.1.160.0030.00522.26
8.1.150.0040.00418.81
8.1.140.0050.00319.58
8.1.130.0040.00417.70
8.1.120.0000.00817.40
8.1.110.0030.00417.58
8.1.100.0000.00717.43
8.1.90.0040.00417.59
8.1.80.0080.00017.53
8.1.70.0050.00317.55
8.1.60.0040.00417.66
8.1.50.0040.00417.61
8.1.40.0000.00817.56
8.1.30.0030.00617.70
8.1.20.0040.00417.73
8.1.10.0000.00717.45
8.1.00.0000.00817.57
8.0.300.0040.00419.97
8.0.290.0000.00716.75
8.0.280.0040.00418.29
8.0.270.0030.00517.25
8.0.260.0060.00017.39
8.0.250.0000.00717.05
8.0.240.0000.00617.07
8.0.230.0030.00617.00
8.0.220.0060.00316.97
8.0.210.0070.00016.84
8.0.200.0000.00617.05
8.0.190.0030.00517.04
8.0.180.0040.00416.96
8.0.170.0000.00817.04
8.0.160.0070.00016.86
8.0.150.0040.00416.94
8.0.140.0040.00316.93
8.0.130.0050.00013.35
8.0.120.0080.00016.97
8.0.110.0040.00416.97
8.0.100.0040.00417.05
8.0.90.0000.00717.14
8.0.80.0090.00616.98
8.0.70.0000.00716.83
8.0.60.0040.00417.03
8.0.50.0040.00416.92
8.0.30.0100.01117.20
8.0.20.0100.01017.40
8.0.10.0070.00017.27
8.0.00.0060.01216.77
7.4.330.0050.00016.68
7.4.320.0030.00316.62
7.4.300.0060.00016.75
7.4.290.0030.00316.62
7.4.280.0000.00816.80
7.4.270.0000.00816.64
7.4.260.0000.00816.68
7.4.250.0040.00416.77
7.4.240.0040.00416.78
7.4.230.0040.00416.62
7.4.220.0180.00316.75
7.4.210.0080.00716.75
7.4.200.0030.00316.56
7.4.160.0040.01516.64
7.4.150.0110.00717.40
7.4.140.0140.01017.86
7.4.130.0030.01416.78
7.4.120.0090.01116.61
7.4.110.0040.01316.44
7.4.100.0080.00816.54
7.4.90.0080.00816.46
7.4.80.0180.00319.39
7.4.70.0070.01016.84
7.4.60.0100.00716.63
7.4.50.0090.00616.39
7.4.40.0150.00616.56
7.4.30.0080.00816.54
7.4.00.0060.01014.79
7.3.330.0050.00013.21
7.3.320.0030.00313.08
7.3.310.0000.00716.42
7.3.300.0000.00716.28
7.3.290.0030.00316.09
7.3.280.0090.01016.33
7.3.270.0090.00917.40
7.3.260.0180.00216.42
7.3.250.0120.00616.38
7.3.240.0170.00516.48
7.3.230.0070.01016.41
7.3.210.0160.00016.45
7.3.200.0160.00716.48
7.3.190.0040.01216.30
7.3.180.0100.00716.36
7.3.170.0130.00316.37
7.3.160.0140.00316.54
7.2.330.0070.01016.59
7.2.320.0000.01816.62
7.2.310.0090.00916.58
7.2.300.0120.00916.71
7.2.290.0060.01216.58
7.2.110.0040.01116.47
7.2.60.0090.00316.86
7.2.00.0060.00919.39
7.1.200.0080.00315.79
7.1.70.0000.00817.28
7.1.60.0070.00717.09
7.1.00.0030.07722.37
7.0.200.0080.00414.87
7.0.110.0530.06320.02
7.0.100.0500.08320.00
7.0.90.0370.07719.99
7.0.80.0300.05719.90
7.0.70.0400.06719.89
7.0.60.0600.04319.88
7.0.50.0430.07020.30
7.0.40.0400.07720.23
7.0.30.0370.09020.27
7.0.20.0470.04720.31
7.0.10.0400.05020.41
7.0.00.0370.05320.21
5.6.260.0030.07020.65
5.6.250.0130.06020.61
5.6.240.0170.07320.84
5.6.230.0230.06320.71
5.6.220.0100.07320.60
5.6.210.0030.06320.57
5.6.200.0230.07321.21
5.6.190.0100.08021.02
5.6.180.0100.06021.02
5.6.170.0030.06721.13
5.6.160.0100.05721.02
5.6.150.0070.06021.13
5.6.140.0000.07020.93
5.6.130.0170.06021.25
5.6.120.0130.05320.94
5.6.110.0130.07720.94
5.6.100.0130.06721.19
5.6.90.0100.06720.93
5.6.80.0230.04720.24
5.6.70.0130.05720.45
5.6.60.0130.07020.59
5.6.50.0100.05320.46
5.6.40.0130.05720.40
5.6.30.0200.05020.43
5.6.20.0100.06320.43
5.6.10.0130.05720.61
5.6.00.0200.05020.41

preferences:
66.23 ms | 401 KiB | 5 Q