3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p_field_type = "select{m,f}"; if(strpos($p_field_type, "{")!==FALSE && strpos($p_field_type, "}")!==FALSE) { echo "huzza!"; } else { echo "nuuuuh!"; } echo "<br>"; echo substr($p_field_type, strpos($p_field_type, "{"), strpos($p_field_type, "}"));

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.40.0040.01118.85
8.3.30.0000.01418.71
8.3.20.0070.00020.09
8.3.10.0050.00223.48
8.3.00.0080.00020.86
8.2.170.0070.00722.96
8.2.160.0100.00320.39
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0140.00020.97
8.2.110.0030.00719.30
8.2.100.0090.00317.47
8.2.90.0000.00819.25
8.2.80.0060.00317.97
8.2.70.0050.00317.63
8.2.60.0050.00317.93
8.2.50.0090.00018.10
8.2.40.0040.00419.82
8.2.30.0000.00718.32
8.2.20.0040.00417.60
8.2.10.0070.00017.94
8.2.00.0070.00017.71
8.1.270.0050.00323.87
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0080.00417.70
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0030.00518.50
8.1.160.0040.00421.97
8.1.150.0000.00718.69
8.1.140.0040.00417.35
8.1.130.0070.00017.81
8.1.120.0030.00317.47
8.1.110.0040.00417.36
8.1.100.0070.00017.45
8.1.90.0070.00017.45
8.1.80.0060.00317.49
8.1.70.0030.00317.48
8.1.60.0030.00617.44
8.1.50.0040.00417.52
8.1.40.0060.00317.46
8.1.30.0030.00517.50
8.1.20.0000.00817.60
8.1.10.0040.00417.52
8.1.00.0030.00617.32
8.0.300.0030.00618.77
8.0.290.0040.00416.63
8.0.280.0030.00318.30
8.0.270.0000.00817.29
8.0.260.0060.00017.16
8.0.250.0000.00716.91
8.0.240.0040.00416.98
8.0.230.0030.00316.87
8.0.220.0030.00316.91
8.0.210.0070.00016.89
8.0.200.0000.01116.95
8.0.190.0040.00416.84
8.0.180.0000.00716.78
8.0.170.0000.00716.89
8.0.160.0000.00816.92
8.0.150.0000.00816.78
8.0.140.0000.00816.72
8.0.130.0050.00013.24
8.0.120.0000.00816.73
8.0.110.0070.00016.88
8.0.100.0070.00016.77
8.0.90.0040.00416.72
8.0.80.0000.01716.92
8.0.70.0000.00716.84
8.0.60.0030.00516.94
8.0.50.0000.00816.91
8.0.30.0100.00817.27
8.0.20.0130.00717.40
8.0.10.0070.00016.88
8.0.00.0070.01416.67
7.4.330.0050.00015.20
7.4.320.0070.00016.59
7.4.300.0040.00416.55
7.4.290.0000.00716.45
7.4.280.0030.00316.48
7.4.270.0070.00016.52
7.4.260.0030.00316.50
7.4.250.0030.00316.57
7.4.240.0030.00416.36
7.4.230.0040.00416.49
7.4.220.0130.00716.59
7.4.210.0090.00916.59
7.4.200.0030.00316.54
7.4.160.0060.01016.57
7.4.150.0160.00317.40
7.4.140.0070.01017.86
7.4.130.0080.00916.45
7.4.120.0080.00916.47
7.4.110.0080.01516.46
7.4.100.0030.01916.46
7.4.90.0100.01016.77
7.4.80.0160.00919.39
7.4.70.0140.00316.52
7.4.60.0000.01816.36
7.4.50.0000.00516.52
7.4.40.0100.00716.51
7.4.30.0120.00316.36
7.4.00.0070.00715.08
7.3.330.0000.00612.95
7.3.320.0000.00613.14
7.3.310.0000.00716.27
7.3.300.0000.00716.21
7.3.290.0060.01316.30
7.3.280.0010.01716.24
7.3.270.0070.01017.40
7.3.260.0110.00716.49
7.3.250.0050.01216.19
7.3.240.0150.00616.45
7.3.230.0110.00616.40
7.3.210.0140.00316.27
7.3.200.0030.01319.39
7.3.190.0060.01316.23
7.3.180.0090.00616.27
7.3.170.0120.00916.27
7.3.160.0040.01416.23
7.3.120.0070.01014.70
7.2.330.0100.00916.41
7.2.320.0110.01416.34
7.2.310.0120.00616.66
7.2.300.0100.00716.45
7.2.290.0110.00716.68
7.2.60.0060.00616.70
7.2.50.0040.00417.00
7.1.200.0090.00615.69
7.1.70.0000.00717.21
7.1.60.0120.00919.70
7.1.50.0180.01516.90
7.1.00.0000.08022.45
7.0.200.0120.00816.70
7.0.140.0000.07722.07
7.0.60.0070.07020.03
7.0.50.0130.07017.88
7.0.40.0100.05020.08
7.0.30.0500.05720.19
7.0.20.0270.08020.20
7.0.10.0030.07320.21
7.0.00.0100.08020.18
5.6.280.0030.07321.15
5.6.210.0070.07320.53
5.6.200.0030.04018.08
5.6.190.0030.08320.41
5.6.180.3570.04020.45
5.6.170.0370.07320.51
5.6.160.0200.03020.47
5.6.150.0130.04718.12
5.6.140.0070.04318.21
5.6.130.0030.04718.16
5.6.120.0070.03721.14
5.6.110.0100.06020.88
5.6.100.0070.07320.97
5.6.90.0070.07721.02
5.6.80.0030.08320.42
5.6.70.4570.03320.38
5.5.350.0070.07320.46
5.5.340.0030.04017.92
5.5.330.0200.06720.13
5.5.320.0230.07020.17
5.5.310.0330.07320.26
5.5.300.0030.04317.94
5.5.290.0070.08317.89
5.5.280.0100.08020.96
5.5.270.0070.06020.77
5.5.260.0100.08020.72
5.5.250.0170.07720.68
5.5.240.0300.07020.25
5.4.450.0400.04328.28
5.4.440.0270.04027.68
5.4.430.0200.05026.16
5.4.420.0430.04326.15
5.4.410.0430.05026.13
5.4.400.0270.04326.13
5.4.390.0100.04326.13
5.4.380.0070.06018.49
5.4.370.0230.04318.64
5.4.360.0170.05018.62
5.4.350.0200.05018.53
5.4.340.0200.04318.68
5.4.320.0040.03712.45
5.4.310.0060.03812.45
5.4.300.0090.04512.45
5.4.290.0050.04212.45
5.4.280.0040.04712.35
5.4.270.0100.04112.34
5.4.260.0080.04212.34
5.4.250.0050.04112.34
5.4.240.0070.03812.34
5.4.230.0090.03912.34
5.4.220.0100.03412.34
5.4.210.0060.03712.34
5.4.200.0060.03912.34
5.4.190.0100.05112.33
5.4.180.0090.05312.33
5.4.170.0060.03812.34
5.4.160.0030.04112.34
5.4.150.0050.04512.34
5.4.140.0060.04712.02
5.4.130.0130.04112.01
5.4.120.0070.05111.97
5.4.110.0100.04811.96
5.4.100.0110.04611.96
5.4.90.0090.05211.96
5.4.80.0110.05211.96
5.4.70.0120.04611.96
5.4.60.0080.05211.96
5.4.50.0160.03911.96
5.4.40.0130.04511.95
5.4.30.0140.04711.95
5.4.20.0100.04711.95
5.4.10.0130.04411.95
5.4.00.0110.04811.43
5.3.290.0060.03812.80
5.3.280.0100.04712.71
5.3.270.0150.04612.72
5.3.260.0110.05112.72
5.3.250.0110.04912.72
5.3.240.0140.04812.72
5.3.230.0070.05312.71
5.3.220.0100.05012.68
5.3.210.0160.05012.68
5.3.200.0060.04812.68
5.3.190.0110.04012.68
5.3.180.0100.04812.67
5.3.170.0100.05012.67
5.3.160.0080.05012.67
5.3.150.0110.04712.68
5.3.140.0070.04212.66
5.3.130.0080.04212.66
5.3.120.0110.04112.66
5.3.110.0110.05412.66
5.3.100.0070.05012.12
5.3.90.0120.04812.09
5.3.80.0120.04612.08
5.3.70.0130.04612.08
5.3.60.0080.05012.06
5.3.50.0090.04812.00
5.3.40.0130.04412.00
5.3.30.0150.05111.95
5.3.20.0060.04111.72
5.3.10.0150.04011.69
5.3.00.0130.05011.68
5.2.170.0080.0399.18
5.2.160.0060.0409.17
5.2.150.0080.0479.18
5.2.140.0070.0449.17
5.2.130.0080.0419.13
5.2.120.0070.0419.13
5.2.110.0090.0459.14
5.2.100.0080.0659.14
5.2.90.0110.0469.14
5.2.80.0070.0479.13
5.2.70.0060.0439.13
5.2.60.0070.0389.09
5.2.50.0100.0409.05
5.2.40.0060.0399.03
5.2.30.0050.0419.00
5.2.20.0050.0399.00
5.2.10.0090.0348.92
5.2.00.0110.0358.78
5.1.60.0050.0358.06
5.1.50.0110.0288.05
5.1.40.0050.0378.04
5.1.30.0070.0338.39
5.1.20.0090.0368.41
5.1.10.0150.0518.14
5.1.00.0070.0398.14
5.0.50.0060.0306.61
5.0.40.0070.0286.47
5.0.30.0050.0486.29
5.0.20.0090.0286.26
5.0.10.0100.0466.24
5.0.00.0110.0406.23
4.4.90.0110.0504.78
4.4.80.0050.0294.75
4.4.70.0030.0334.75
4.4.60.0100.0384.75
4.4.50.0030.0244.77
4.4.40.0040.0264.71
4.4.30.0050.0154.76
4.4.20.0030.0214.85
4.4.10.0040.0214.85
4.4.00.0040.0314.75
4.3.110.0050.0194.67
4.3.100.0060.0224.66
4.3.90.0060.0194.64
4.3.80.0040.0334.58
4.3.70.0030.0224.63
4.3.60.0020.0234.63
4.3.50.0060.0184.63
4.3.40.0040.0324.54
4.3.30.0040.0253.29
4.3.20.0020.0223.26
4.3.10.0030.0213.21
4.3.00.0000.02026.13

preferences:
44.91 ms | 400 KiB | 5 Q