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 "\n"; echo substr($p_field_type, strpos($p_field_type, "{") + 1, strpos($p_field_type, "}") - strpos($p_field_type, "{") - 1);

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.0110.00316.25
8.3.50.0110.00721.88
8.3.40.0110.00418.90
8.3.30.0070.01018.95
8.3.20.0050.00220.32
8.3.10.0070.00023.54
8.3.00.0050.00320.80
8.2.180.0070.01018.41
8.2.170.0080.00622.96
8.2.160.0070.00720.43
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0080.00020.64
8.2.110.0060.00319.29
8.2.100.0090.00317.91
8.2.90.0080.00019.21
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0000.00818.04
8.2.50.0000.00818.10
8.2.40.0040.00419.97
8.2.30.0000.00718.30
8.2.20.0070.00017.58
8.2.10.0040.00418.20
8.2.00.0000.00717.71
8.1.280.0070.00725.92
8.1.270.0000.00923.75
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0030.00623.92
8.1.230.0070.00717.83
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.38
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0000.00818.51
8.1.160.0000.00722.08
8.1.150.0000.00718.55
8.1.140.0030.00517.53
8.1.130.0000.00717.85
8.1.120.0000.00717.38
8.1.110.0040.00417.50
8.1.100.0040.00417.50
8.1.90.0000.00817.51
8.1.80.0040.00417.47
8.1.70.0070.00017.45
8.1.60.0030.00617.61
8.1.50.0040.00417.46
8.1.40.0000.00717.53
8.1.30.0050.00317.70
8.1.20.0050.00217.54
8.1.10.0040.00417.44
8.1.00.0000.00817.49
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0070.00018.39
8.0.270.0030.00317.29
8.0.260.0000.00617.33
8.0.250.0000.00716.91
8.0.240.0060.00316.83
8.0.230.0040.00416.87
8.0.220.0070.00016.95
8.0.210.0030.00316.91
8.0.200.0060.00316.99
8.0.190.0040.00416.86
8.0.180.0040.00416.97
8.0.170.0000.01016.90
8.0.160.0040.00416.80
8.0.150.0000.00716.86
8.0.140.0040.00416.80
8.0.130.0000.00613.39
8.0.120.0000.00816.86
8.0.110.0040.00416.95
8.0.100.0030.00416.80
8.0.90.0050.00216.93
8.0.80.0090.00616.92
8.0.70.0040.00416.70
8.0.60.0040.00417.04
8.0.50.0040.00416.74
8.0.30.0120.00817.03
8.0.20.0100.01017.40
8.0.10.0070.00017.16
8.0.00.0040.01316.83
7.4.330.0000.00515.00
7.4.320.0040.00416.54
7.4.300.0000.00616.68
7.4.290.0050.00216.44
7.4.280.0000.00716.51
7.4.270.0000.00716.61
7.4.260.0040.00416.56
7.4.250.0060.00316.46
7.4.240.0040.00416.58
7.4.230.0050.00316.57
7.4.220.0060.01216.62
7.4.210.0060.00916.62
7.4.200.0000.00716.65
7.4.160.0040.01316.45
7.4.150.0090.00917.40
7.4.140.0160.01817.86
7.4.130.0100.00716.58
7.4.120.0120.00516.42
7.4.110.0100.00716.44
7.4.100.0040.01316.61
7.4.90.0120.00816.45
7.4.80.0150.00819.39
7.4.70.0000.01616.56
7.4.60.0130.00616.46
7.4.50.0050.00316.31
7.4.40.0100.00716.66
7.4.30.0110.00516.68
7.4.00.0020.01614.84
7.3.330.0030.00313.06
7.3.320.0020.00213.13
7.3.310.0040.00416.30
7.3.300.0040.00416.21
7.3.290.0040.01116.26
7.3.280.0040.01116.25
7.3.270.0140.00317.40
7.3.260.0090.00916.27
7.3.250.0140.00516.25
7.3.240.0120.00916.13
7.3.230.0030.01316.39
7.3.210.0100.00716.43
7.3.200.0100.01019.39
7.3.190.0080.00916.30
7.3.180.0060.01016.22
7.3.170.0090.01216.38
7.3.160.0060.01016.34
7.3.120.0030.01214.81
7.3.110.0150.00414.71
7.3.100.0070.00714.56
7.3.90.0030.01414.92
7.3.80.0110.00414.78
7.3.70.0060.00614.96
7.3.60.0060.00914.81
7.3.50.0060.00314.73
7.3.40.0040.01114.74
7.3.30.0030.00614.80
7.3.20.0070.00716.65
7.3.10.0100.01016.52
7.3.00.0050.00516.55
7.2.330.0060.01516.27
7.2.320.0090.00916.70
7.2.310.0120.00616.25
7.2.300.0100.01016.44
7.2.290.0060.01416.48
7.2.250.0070.01015.11
7.2.240.0070.01414.88
7.2.230.0060.01014.60
7.2.220.0030.01015.07
7.2.210.0030.00914.65
7.2.200.0030.00915.16
7.2.190.0100.00614.98
7.2.180.0040.00414.98
7.2.170.0030.01315.01
7.2.110.0250.00316.50
7.2.60.0000.01516.81
7.2.00.0040.00718.96
7.1.330.0040.00715.73
7.1.320.0040.00715.84
7.1.310.0090.00615.89
7.1.300.0040.01215.67
7.1.290.0060.00915.56
7.1.280.0040.00715.69
7.1.270.0080.00815.77
7.1.260.0000.00915.70
7.1.200.0030.00715.78
7.1.100.0040.00717.96
7.1.70.0030.00617.10
7.1.60.0080.00319.70
7.1.50.0220.00616.89
7.1.00.0070.07022.44
7.0.200.0190.00616.59
7.0.140.0030.07322.07
7.0.60.0100.08319.96
7.0.50.0070.06717.85
7.0.40.0070.04720.05
7.0.30.0130.04720.20
7.0.20.0270.05720.01
7.0.10.0100.08720.13
7.0.00.0130.08319.99
5.6.280.0070.07020.86
5.6.210.0170.07320.66
5.6.200.0100.08318.11
5.6.190.0100.04020.78
5.6.180.4000.04320.45
5.6.170.0270.08020.38
5.6.160.0100.03720.70
5.6.150.0000.09018.16
5.6.140.0030.07018.11
5.6.130.0030.04018.22
5.6.120.0100.04321.01
5.6.110.0070.08320.97
5.6.100.0100.06320.97
5.6.90.0030.08321.13
5.6.80.0070.08020.50
5.6.70.3070.03320.48
5.5.350.0000.08320.52
5.5.340.0030.07018.00
5.5.330.0030.04320.37
5.5.320.0270.05720.27
5.5.310.0130.04020.21
5.5.300.0030.05017.91
5.5.290.0100.07717.96
5.5.280.0130.07720.76
5.5.270.0100.08020.73
5.5.260.0100.08320.75
5.5.250.0000.08720.69
5.5.240.0170.03020.12
5.4.450.0270.04028.28
5.4.440.0270.04727.56
5.4.430.0170.04326.16
5.4.420.0270.04326.15
5.4.410.0300.04026.13
5.4.400.0130.04326.13
5.4.390.0670.03326.13
5.4.380.0070.06018.71
5.4.370.0200.05018.68
5.4.360.0630.06318.74
5.4.350.0100.05718.49
5.4.340.0130.05318.50
5.4.320.0060.03612.46
5.4.310.0070.03812.45
5.4.300.0100.05112.46
5.4.290.0100.05312.45
5.4.280.0070.05212.35
5.4.270.0120.04712.35
5.4.260.0110.08012.35
5.4.250.0110.05512.35
5.4.240.0100.05112.35
5.4.230.0120.04812.34
5.4.220.0110.04512.34
5.4.210.0130.04412.34
5.4.200.0110.05012.34
5.4.190.0080.05012.34
5.4.180.0110.04312.34
5.4.170.0140.04412.35
5.4.160.0060.04612.34
5.4.150.0070.05012.34
5.4.140.0120.04412.03
5.4.130.0060.05112.02
5.4.120.0090.05411.97
5.4.110.0160.05111.97
5.4.100.0140.04811.97
5.4.90.0140.06511.97
5.4.80.0070.05011.96
5.4.70.0120.04411.96
5.4.60.0100.05511.96
5.4.50.0170.07011.97
5.4.40.0080.05611.95
5.4.30.0080.06111.95
5.4.20.0060.06311.95
5.4.10.0120.05111.95
5.4.00.0100.05211.44
5.3.290.0090.03712.80
5.3.280.0120.05212.70
5.3.270.0050.06912.72
5.3.260.0130.06012.72
5.3.250.0120.06212.72
5.3.240.0090.06212.72
5.3.230.0070.05612.71
5.3.220.0060.06012.68
5.3.210.0110.05612.68
5.3.200.0120.04512.68
5.3.190.0090.05412.68
5.3.180.0100.04712.67
5.3.170.0120.06812.67
5.3.160.0090.05612.67
5.3.150.0080.05512.68
5.3.140.0060.05212.66
5.3.130.0100.05412.66
5.3.120.0140.05012.66
5.3.110.0130.04812.66
5.3.100.0080.04812.12
5.3.90.0100.04812.08
5.3.80.0120.04212.07
5.3.70.0080.04612.07
5.3.60.0060.04912.06
5.3.50.0070.04712.00
5.3.40.0110.04712.00
5.3.30.0130.04511.95
5.3.20.0080.04911.72
5.3.10.0070.05211.69
5.3.00.0100.05011.68
5.2.170.0080.0429.18
5.2.160.0090.0399.18
5.2.150.0050.0449.18
5.2.140.0060.0419.17
5.2.130.0070.0399.13
5.2.120.0080.0379.14
5.2.110.0060.0389.15
5.2.100.0060.0399.14
5.2.90.0060.0409.14
5.2.80.0070.0419.13
5.2.70.0070.0449.14
5.2.60.0100.0409.09
5.2.50.0110.0399.05
5.2.40.0100.0379.04
5.2.30.0060.0449.01
5.2.20.0040.0409.00
5.2.10.0080.0348.92
5.2.00.0020.0488.78
5.1.60.0060.0388.06
5.1.50.0070.0358.05
5.1.40.0060.0378.04
5.1.30.0140.0448.39
5.1.20.0080.0398.41
5.1.10.0110.0338.14
5.1.00.0080.0378.14
5.0.50.0070.0276.62
5.0.40.0050.0276.48
5.0.30.0040.0416.29
5.0.20.0040.0276.26
5.0.10.0030.0286.23
5.0.00.0030.0406.23
4.4.90.0060.0204.78
4.4.80.0040.0214.75
4.4.70.0030.0224.76
4.4.60.0040.0214.76
4.4.50.0060.0244.77
4.4.40.0070.0304.71
4.4.30.0050.0204.76
4.4.20.0050.0214.84
4.4.10.0050.0214.85
4.4.00.0060.0314.76
4.3.110.0020.0254.67
4.3.100.0040.0244.67
4.3.90.0040.0224.64
4.3.80.0040.0334.58
4.3.70.0030.0204.63
4.3.60.0040.0204.63
4.3.50.0050.0394.63
4.3.40.0070.0324.54
4.3.30.0030.0243.28
4.3.20.0030.0333.26
4.3.10.0020.0433.22
4.3.00.0000.01726.13

preferences:
45.35 ms | 401 KiB | 5 Q