3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match('[0-9a-zA-Z]', 'bob', $matches), $matches); echo '---------', PHP_EOL; var_dump(preg_match('~[0-9a-zA-Z]~', 'bob', $matches), $matches); echo '---------', PHP_EOL; var_dump(preg_match('~[0-9a-zA-Z]+~', 'bob', $matches), $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)
8.3.60.0100.01018.43
8.3.50.0150.00521.15
8.3.40.0110.00418.70
8.3.30.0070.00718.95
8.3.20.0050.00320.29
8.3.10.0040.00423.66
8.3.00.0000.00819.38
8.2.180.0070.01118.54
8.2.170.0060.01018.92
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00422.24
8.2.110.0070.00320.38
8.2.100.0090.00317.92
8.2.90.0000.00819.05
8.2.80.0030.00617.97
8.2.70.0100.00017.63
8.2.60.0080.00017.93
8.2.50.0050.00318.07
8.2.40.0080.00019.76
8.2.30.0040.00417.96
8.2.20.0020.00517.71
8.2.10.0040.00417.94
8.2.00.0000.00817.75
8.1.280.0070.01525.92
8.1.270.0060.00323.83
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0110.00721.25
8.1.230.0080.00317.57
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.10
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0000.00918.47
8.1.160.0040.00421.87
8.1.150.0070.00018.66
8.1.140.0040.00417.43
8.1.130.0000.00717.43
8.1.120.0050.00317.38
8.1.110.0020.00517.37
8.1.100.0020.00517.54
8.1.90.0020.00517.46
8.1.80.0030.00417.50
8.1.70.0030.00317.46
8.1.60.0050.00317.51
8.1.50.0000.00917.44
8.1.40.0050.00317.41
8.1.30.0030.00617.70
8.1.20.0040.00417.58
8.1.10.0030.00617.56
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.40
8.0.270.0000.00717.20
8.0.260.0030.00316.95
8.0.250.0000.00716.96
8.0.240.0030.00316.98
8.0.230.0000.01017.00
8.0.220.0030.00316.95
8.0.210.0000.00716.82
8.0.200.0000.00816.84
8.0.190.0030.00316.96
8.0.180.0040.00316.96
8.0.170.0050.00316.94
8.0.160.0000.00716.83
8.0.150.0050.00216.88
8.0.140.0000.00716.80
8.0.130.0070.00013.36
8.0.120.0040.00416.78
8.0.110.0070.00016.85
8.0.100.0040.00416.79
8.0.90.0030.00516.86
8.0.80.0130.00316.93
8.0.70.0040.00416.79
8.0.60.0000.00716.71
8.0.50.0040.00416.85
8.0.30.0120.00817.26
8.0.20.0090.01117.40
8.0.10.0060.00316.86
8.0.00.0160.00616.79
7.4.330.0000.00515.02
7.4.320.0070.00016.57
7.4.300.0000.00716.73
7.4.290.0030.00316.68
7.4.280.0040.00416.58
7.4.270.0000.00716.60
7.4.260.0080.00016.66
7.4.250.0020.00516.50
7.4.240.0060.00116.61
7.4.230.0040.00416.43
7.4.220.0120.00616.77
7.4.210.0040.01116.70
7.4.200.0040.00416.59
7.4.160.0120.00316.51
7.4.150.0100.00717.40
7.4.140.0130.00817.86
7.4.130.0130.00816.61
7.4.120.0120.00816.71
7.4.110.0090.01316.70
7.4.100.0110.00616.68
7.4.90.0140.00616.73
7.4.80.0070.01019.39
7.4.70.0050.01616.45
7.4.60.0130.01016.35
7.4.50.0030.00616.40
7.4.40.0100.00716.67
7.4.30.0110.00516.68
7.4.00.0030.01014.95
7.3.330.0030.00313.20
7.3.320.0060.00013.27
7.3.310.0030.00316.37
7.3.300.0070.00016.21
7.3.290.0080.00716.26
7.3.280.0100.00916.28
7.3.270.0100.00717.40
7.3.260.0070.01116.36
7.3.250.0100.01216.42
7.3.240.0120.00916.40
7.3.230.0130.00316.39
7.3.210.0090.01116.28
7.3.200.0100.00719.39
7.3.190.0110.00616.63
7.3.180.0140.00416.52
7.3.170.0130.00316.37
7.3.160.0090.01216.29
7.3.10.0060.00516.84
7.3.00.0060.00816.54
7.2.330.0210.00616.59
7.2.320.0090.00916.46
7.2.310.0090.00916.42
7.2.300.0080.00816.64
7.2.290.0100.00716.58
7.2.130.0030.01016.67
7.2.120.0080.00816.92
7.2.110.0070.00916.83
7.2.100.0050.00516.98
7.2.90.0020.01316.98
7.2.80.0080.00116.73
7.2.70.0050.00616.88
7.2.60.0050.00916.93
7.2.50.0050.01216.47
7.2.40.0050.00916.77
7.2.30.0040.00816.98
7.2.20.0080.00617.02
7.2.10.0040.00816.98
7.2.00.0040.01417.75
7.1.250.0050.00715.87
7.1.240.0040.01415.89
7.1.230.0030.00615.87
7.1.220.0100.00715.79
7.1.210.0030.00715.45
7.1.200.0050.00915.64
7.1.190.0040.00815.74
7.1.180.0000.01015.80
7.1.170.0070.00415.89
7.1.160.0070.00715.87
7.1.150.0070.01016.00
7.1.140.0100.00315.98
7.1.130.0030.01216.02
7.1.120.0040.01115.77
7.1.110.0090.00616.05
7.1.100.0040.00817.02
7.1.90.0030.01015.95
7.1.80.0100.00616.00
7.1.70.0030.00816.62
7.1.60.0080.01217.51
7.1.50.0090.01216.40
7.1.40.0040.00815.62
7.1.30.0040.00415.69
7.1.20.0060.00615.93
7.1.10.0030.01015.82
7.1.00.0030.04319.18
7.0.330.0040.00815.44
7.0.320.0100.00315.49
7.0.310.0100.00315.57
7.0.300.0070.00715.50
7.0.290.0060.00615.32
7.0.280.0000.01715.38
7.0.270.0070.00715.69
7.0.260.0080.00415.22
7.0.250.0030.01015.46
7.0.240.0060.01215.37
7.0.230.0040.01115.54
7.0.220.0070.00715.39
7.0.210.0030.01015.26
7.0.200.0060.00616.23
7.0.190.0040.00715.50
7.0.180.0080.01115.53
7.0.170.0000.01315.41
7.0.160.0080.00015.59
7.0.150.0030.00715.35
7.0.140.0080.03718.91
7.0.130.0030.01015.35
7.0.120.0100.00715.30
7.0.110.0030.01015.56
7.0.100.0110.00315.36
7.0.90.0060.00615.46
7.0.80.0070.00315.23
7.0.70.0030.01015.49
7.0.60.0180.03717.61
7.0.50.0030.02616.68
7.0.40.0150.03516.86
7.0.30.0120.03516.79
7.0.20.0150.02416.96
7.0.10.0080.04716.88
7.0.00.0050.02816.84
5.6.380.0120.00314.39
5.6.370.0040.00414.20
5.6.360.0130.00013.79
5.6.350.0000.01014.28
5.6.340.0090.00013.79
5.6.330.0030.01014.18
5.6.320.0060.00613.82
5.6.310.0090.00313.99
5.6.300.0080.00413.88
5.6.290.0030.00914.22
5.6.280.0110.03317.52
5.6.270.0030.01014.03
5.6.260.0100.00314.27
5.6.250.0000.01113.90
5.6.240.0120.00314.30
5.6.230.0030.00914.17
5.6.220.0000.01314.27
5.6.210.0110.03317.35
5.6.200.0080.03416.30
5.6.190.0060.02617.25
5.6.180.0150.04417.27
5.6.170.0170.03317.29
5.6.160.0000.03717.14
5.6.150.0180.03316.01
5.6.140.0100.04216.29
5.6.130.0100.04016.08
5.6.120.0000.03117.61
5.6.110.0120.04317.53
5.6.100.0070.04617.39
5.6.90.0100.04517.60
5.6.80.0030.03417.06
5.6.70.0070.01013.87
5.6.60.0090.00614.16
5.6.50.0040.00914.00
5.6.40.0130.00314.02
5.6.30.0090.01214.04
5.6.20.0080.00314.13
5.6.10.0100.01313.95
5.6.00.0060.01014.25
5.5.380.0040.00411.64
5.5.370.0000.01211.64
5.5.360.0030.00911.64
5.5.350.0140.04215.98
5.5.340.0070.02214.83
5.5.330.0050.04815.91
5.5.320.0130.03515.88
5.5.310.0140.03915.95
5.5.300.0020.04414.82
5.5.290.0030.02814.82
5.5.280.0080.02816.14
5.5.270.0080.04016.29
5.5.260.0100.04216.25
5.5.250.0100.03616.13
5.5.240.0190.03615.95
5.5.230.0040.00811.64
5.5.220.0000.01111.64
5.5.210.0000.01111.64
5.5.200.0080.00811.64
5.5.190.0040.01211.64
5.5.180.0040.01111.64
5.5.170.0030.00311.64
5.5.160.0060.00611.64
5.5.150.0030.00911.64
5.5.140.0030.00711.64
5.5.130.0090.00311.64
5.5.120.0000.01011.64
5.5.110.0030.00611.64
5.5.100.0000.01111.64
5.5.90.0060.00311.64
5.5.80.0110.00411.64
5.5.70.0060.00611.64
5.5.60.0030.00711.64
5.5.50.0040.00811.64
5.5.40.0030.00511.64
5.5.30.0060.00611.64
5.5.20.0030.00711.64
5.5.10.0030.00311.64
5.5.00.0040.00711.64
5.4.450.0530.03315.57
5.4.440.0530.02915.53
5.4.430.0460.02815.55
5.4.420.0330.00515.56
5.4.410.0330.00415.50
5.4.400.0330.00215.37
5.4.390.0310.00315.36
5.4.380.0340.00215.31
5.4.370.0300.00515.35
5.4.360.0320.00215.28
5.4.350.0360.00215.45
5.4.340.0080.01911.80
5.4.330.0040.00411.64
5.4.320.0030.02412.04
5.4.310.0070.02112.04
5.4.300.0090.01912.04
5.4.290.0070.01912.04
5.4.280.0040.02211.99
5.4.270.0050.02011.99
5.4.260.0080.02111.99
5.4.250.0020.02211.99
5.4.240.0070.02111.99
5.4.230.0080.02011.99
5.4.220.0040.02111.99
5.4.210.0070.02211.99
5.4.200.0020.02611.99
5.4.190.0060.02211.99
5.4.180.0040.02311.99
5.4.170.0060.01911.99
5.4.160.0030.02211.99
5.4.150.0020.02311.99
5.4.140.0050.02311.83
5.4.130.0050.02111.82
5.4.120.0050.02211.80
5.4.110.0130.01511.80
5.4.100.0050.02011.80
5.4.90.0030.02211.80
5.4.80.0060.02111.80
5.4.70.0040.02211.80
5.4.60.0030.02311.80
5.4.50.0090.01911.80
5.4.40.0080.01911.79
5.4.30.0090.01711.79
5.4.20.0050.02111.79
5.4.10.0080.01811.79
5.4.00.0040.02211.54
5.3.290.0040.02212.22
5.3.280.0050.02212.17
5.3.270.0030.02212.18
5.3.260.0030.02212.18
5.3.250.0060.01912.18
5.3.240.0020.02312.18
5.3.230.0040.02412.17
5.3.220.0050.02112.16
5.3.210.0040.02412.16
5.3.200.0050.02012.16
5.3.190.0050.02212.16
5.3.180.0020.02112.15
5.3.170.0040.02012.15
5.3.160.0070.01912.15
5.3.150.0070.01612.16
5.3.140.0080.01812.15
5.3.130.0070.02012.15
5.3.120.0060.02012.15
5.3.110.0040.02512.15
5.3.100.0040.02211.88
5.3.90.0090.01611.86
5.3.80.0040.02011.86
5.3.70.0040.02011.86
5.3.60.0050.02011.85
5.3.50.0040.02011.82
5.3.40.0040.02111.82
5.3.30.0040.02211.79
5.3.20.0050.02111.68
5.3.10.0030.02211.67
5.3.00.0080.02011.66
5.2.170.0060.01710.41
5.2.160.0050.01810.41
5.2.150.0050.01610.41
5.2.140.0020.02010.41
5.2.130.0040.01710.39
5.2.120.0080.01510.39
5.2.110.0040.01810.39
5.2.100.0020.01910.39
5.2.90.0040.01810.39
5.2.80.0050.01810.39
5.2.70.0020.02010.39
5.2.60.0030.01810.37
5.2.50.0020.02010.35
5.2.40.0060.01510.34
5.2.30.0040.02010.33
5.2.20.0060.01310.32
5.2.10.0040.01710.28
5.2.00.0040.01810.21
5.1.60.0050.0139.85
5.1.50.0060.0149.85
5.1.40.0020.0189.84
5.1.30.0040.01710.02
5.1.20.0060.01510.03
5.1.10.0050.0149.89
5.1.00.0030.0159.89
5.0.50.0020.0139.13
5.0.40.0040.0109.05
5.0.30.0050.0168.96
5.0.20.0030.0128.95
5.0.10.0000.0158.94
5.0.00.0060.0168.93
4.4.90.0000.0138.21
4.4.80.0040.0098.20
4.4.70.0020.0098.20
4.4.60.0030.0108.20
4.4.50.0010.0118.20
4.4.40.0030.0158.17
4.4.30.0040.0098.20
4.4.20.0030.0098.24
4.4.10.0030.0078.24
4.4.00.0020.0148.20
4.3.110.0030.0098.15
4.3.100.0030.0098.15
4.3.90.0020.0098.13
4.3.80.0010.0158.11
4.3.70.0050.0108.13
4.3.60.0040.0088.13
4.3.50.0040.0128.13
4.3.40.0040.0128.09
4.3.30.0020.0117.46
4.3.20.0050.0107.45
4.3.10.0030.0107.43
4.3.00.0050.0109.46

preferences:
42.51 ms | 401 KiB | 5 Q