3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regexp = '/^ba\/r$/ui'; $regexpModifiers = substr(strrchr($regexp, "/"), 1); var_dump(strstr($regexpModifiers, 'i'));

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.0090.00916.23
8.3.60.0120.00618.41
8.3.50.0090.00921.98
8.3.40.0110.01118.65
8.3.30.0070.01018.92
8.3.20.0040.00420.18
8.3.10.0040.00421.73
8.3.00.0040.00419.19
8.2.180.0160.00616.38
8.2.170.0090.00622.96
8.2.160.0170.00322.08
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0140.00026.16
8.2.120.0080.00021.05
8.2.110.0030.00620.39
8.2.100.0080.00417.72
8.2.90.0080.00017.63
8.2.80.0080.00017.97
8.2.70.0000.00817.93
8.2.60.0040.00418.16
8.2.50.0040.00418.10
8.2.40.0000.00819.17
8.2.30.0040.00419.23
8.2.20.0080.00017.49
8.2.10.0040.00417.93
8.2.00.0080.00017.68
8.1.280.0090.00625.92
8.1.270.0030.00618.87
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0040.00423.92
8.1.230.0040.00719.04
8.1.220.0000.00817.76
8.1.210.0040.00421.09
8.1.200.0000.00917.35
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0030.00518.53
8.1.160.0050.00318.86
8.1.150.0000.00718.82
8.1.140.0030.00717.30
8.1.130.0020.00517.70
8.1.120.0070.00017.30
8.1.110.0000.00717.37
8.1.100.0030.00517.38
8.1.90.0000.00717.41
8.1.80.0070.00017.35
8.1.70.0070.00017.38
8.1.60.0050.00317.40
8.1.50.0000.00917.45
8.1.40.0000.00717.40
8.1.30.0040.00417.59
8.1.20.0000.00817.45
8.1.10.0000.00817.30
8.1.00.0000.00717.25
8.0.300.0000.00719.64
8.0.290.0090.00016.61
8.0.280.0070.00018.38
8.0.270.0030.00317.19
8.0.260.0000.00617.24
8.0.250.0000.00716.75
8.0.240.0000.00616.80
8.0.230.0040.00416.80
8.0.220.0000.00716.71
8.0.210.0000.00716.84
8.0.200.0030.00316.91
8.0.190.0040.00416.78
8.0.180.0030.00316.77
8.0.170.0040.00416.72
8.0.160.0040.00416.90
8.0.150.0040.00416.67
8.0.140.0030.00316.83
8.0.130.0030.00313.20
8.0.120.0050.00416.69
8.0.110.0030.00516.80
8.0.100.0000.00816.89
8.0.90.0030.00516.70
8.0.80.0090.00616.75
8.0.70.0000.00716.95
8.0.60.0050.00316.77
8.0.50.0000.00716.84
8.0.30.0090.01316.83
8.0.20.0110.01017.40
8.0.10.0000.00716.84
8.0.00.0090.00916.80
7.4.330.0000.00615.03
7.4.320.0000.00916.58
7.4.300.0060.00016.49
7.4.290.0030.00716.39
7.4.280.0000.00816.39
7.4.270.0060.00016.34
7.4.260.0030.00316.51
7.4.250.0040.00416.55
7.4.240.0060.00116.44
7.4.230.0030.00316.30
7.4.220.0030.02016.44
7.4.210.0160.00016.59
7.4.200.0030.00316.25
7.4.160.0040.01116.46
7.4.150.0080.00817.40
7.4.140.0080.01417.86
7.4.130.0130.00716.39
7.4.120.0100.00716.41
7.4.110.0150.00316.34
7.4.100.0100.00716.42
7.4.90.0100.00716.56
7.4.80.0170.01019.39
7.4.70.0080.00816.56
7.4.60.0060.00916.27
7.4.50.0040.00416.59
7.4.40.0130.00316.32
7.4.30.0150.00316.31
7.4.00.0030.01415.16
7.3.330.0000.00513.03
7.3.320.0040.00413.05
7.3.310.0020.00515.99
7.3.300.0030.00316.05
7.3.290.0090.00416.11
7.3.280.0080.01016.14
7.3.270.0070.01017.40
7.3.260.0130.01016.43
7.3.250.0110.01116.14
7.3.240.0140.00416.19
7.3.230.0120.00916.39
7.3.210.0140.00416.10
7.3.200.0190.00319.39
7.3.190.0100.00616.24
7.3.180.0070.01116.50
7.3.170.0090.00616.49
7.3.160.0060.01016.06
7.2.330.0090.00816.25
7.2.320.0150.00316.55
7.2.310.0100.01016.45
7.2.300.0000.01816.48
7.2.290.0080.00816.56
7.2.00.0000.00919.13
7.1.100.0030.00718.01
7.1.70.0150.00817.09
7.1.60.0140.01019.22
7.1.50.0030.01716.56
7.1.00.0070.07322.33
7.0.200.0000.00716.58
7.0.140.0100.02721.90
7.0.60.0130.07320.01
7.0.50.0100.03717.68
7.0.40.0030.09320.40
7.0.30.0170.04720.18
7.0.20.0270.06320.16
7.0.10.0030.09320.09
7.0.00.0030.04320.01
5.6.280.0100.06720.92
5.6.210.0170.06020.46
5.6.200.0070.03718.11
5.6.190.0100.08320.60
5.6.180.0330.07720.61
5.6.170.0270.05720.46
5.6.160.0030.04320.50
5.6.150.0100.07018.08
5.6.140.0070.08718.14
5.6.130.0100.07018.07
5.6.120.0070.08321.00
5.6.110.0030.08721.13
5.6.100.0100.05020.98
5.6.90.0070.08720.97
5.6.80.0170.07020.43
5.5.350.0230.06720.42
5.5.340.0030.06018.01
5.5.330.0100.05020.43
5.5.320.0370.05320.21
5.5.310.0300.08320.34
5.5.300.0030.05317.87
5.5.290.0130.05017.91
5.5.280.0100.04720.86
5.5.270.0070.04320.95
5.5.260.0130.05720.76
5.5.250.0200.05020.57
5.5.240.0030.07720.35
5.4.450.0770.05319.23
5.4.440.0270.04719.47
5.4.430.0230.05019.52
5.4.420.0170.05719.53
5.4.410.0200.05019.33
5.4.400.0000.06719.26
5.4.390.0270.04318.50
5.4.380.0270.05318.76
5.4.370.0170.05718.71
5.4.360.0200.05318.68
5.4.350.0270.05318.57
5.4.340.0300.06318.43
5.4.320.0270.07018.73
5.4.310.0100.05718.57
5.4.300.0130.05318.57
5.4.290.0200.04718.73
5.4.280.0370.03318.71
5.4.270.0200.05718.71
5.4.260.0230.04718.56
5.4.250.0230.05018.60
5.4.240.0170.06318.68
5.4.230.0300.04018.42
5.4.220.0130.06018.42
5.4.210.0030.07018.56
5.4.200.0170.05316.58
5.4.190.0230.05318.42
5.4.180.0270.05318.41
5.4.170.0230.05718.55
5.4.160.0230.05318.71
5.4.150.0130.06718.69
5.4.140.0130.06016.12
5.4.130.0130.05316.12
5.4.120.0130.05016.26
5.4.110.0270.04016.18
5.4.100.0100.06316.12
5.4.90.0100.05016.20
5.4.80.0200.05316.14
5.4.70.0170.06016.11
5.4.60.0130.05716.21
5.4.50.0200.05316.23
5.4.40.0170.06016.09
5.4.30.0200.05016.09
5.4.20.0200.05016.00
5.4.10.0230.04316.25
5.4.00.0130.05315.64
5.3.290.0130.06014.75
5.3.280.0170.05714.64
5.3.270.0170.05714.63
5.3.260.0230.06714.58
5.3.250.0070.08014.60
5.3.240.0130.06014.69
5.3.230.0230.05014.59
5.3.220.0270.04314.48
5.3.210.0200.05314.56
5.3.200.0200.07014.47
5.3.190.0200.07014.62
5.3.180.0130.06014.47
5.3.170.0070.06314.63
5.3.160.0300.04314.63
5.3.150.0230.07014.64
5.3.140.0370.05714.64
5.3.130.0230.05314.64
5.3.120.0100.06314.52
5.3.110.0200.05014.64
5.3.100.0070.07314.15
5.3.90.0130.07714.05
5.3.80.0170.07013.91
5.3.70.0100.07714.04
5.3.60.0200.06713.92
5.3.50.0200.06713.94
5.3.40.0200.07013.95
5.3.30.0200.06713.83
5.3.20.0270.06013.78
5.3.10.0300.05713.63
5.3.00.0130.07313.63
5.2.170.0070.04711.12
5.2.160.0100.04311.10
5.2.150.0230.03311.13
5.2.140.0170.04011.17
5.2.130.0130.04011.13
5.2.120.0070.04311.05
5.2.110.0130.04311.05
5.2.100.0100.04711.01
5.2.90.0170.04011.06
5.2.80.0130.04311.04
5.2.70.0200.03311.06
5.2.60.0070.04710.98
5.2.50.0070.04711.07
5.2.40.0170.04011.05
5.2.30.0130.04710.95
5.2.20.0100.04310.99
5.2.10.0070.04710.95
5.2.00.0070.05010.84
5.1.60.0130.04010.09
5.1.50.0170.04310.01
5.1.40.0130.0479.99
5.1.30.0170.04710.42
5.1.20.0230.04010.36
5.1.10.0230.03710.18
5.1.00.0130.05010.10
5.0.50.0070.0408.70
5.0.40.0200.0278.46
5.0.30.0100.0538.23
5.0.20.0070.0408.32
5.0.10.0100.0378.24
5.0.00.0100.0508.19
4.4.90.0070.0305.95
4.4.80.0030.0335.93
4.4.70.0100.0275.88
4.4.60.0100.0275.87
4.4.50.0030.0335.89
4.4.40.0130.0375.82
4.4.30.0000.0375.86
4.4.20.0070.0305.95
4.4.10.0070.0305.91
4.4.00.0030.0475.93
4.3.110.0030.0335.79
4.3.100.0070.0305.83
4.3.90.0070.0275.89
4.3.80.0100.0405.77
4.3.70.0070.0305.80
4.3.60.0070.0305.82
4.3.50.0130.0235.88
4.3.40.0030.0475.77
4.3.30.0030.0304.55
4.3.20.0030.0304.58
4.3.10.0000.0334.48
4.3.00.0100.0237.30

preferences:
47.3 ms | 401 KiB | 5 Q