3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { const CMS_IDENTIFIER = '#ELEMENT:'; } $identifier = '#ELEMENT:register'; var_dump(strpos($identifier,Test::CMS_IDENTIFIER)); if (0 === strpos($identifier,Test::CMS_IDENTIFIER)) { var_dump(substr($identifier, strlen(Test::CMS_IDENTIFIER))); }

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.0140.00016.75
8.3.50.0110.00722.99
8.3.40.0120.00318.89
8.3.30.0070.01118.73
8.3.20.0000.00820.51
8.3.10.0030.00621.75
8.3.00.0080.00017.79
8.2.180.0000.01516.36
8.2.170.0070.01022.96
8.2.160.0100.00320.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0000.00721.02
8.2.110.0130.00319.21
8.2.100.0040.00817.78
8.2.90.0000.00819.09
8.2.80.0030.00617.97
8.2.70.0120.00317.25
8.2.60.0080.00317.79
8.2.50.0000.00918.07
8.2.40.0040.00418.22
8.2.30.0030.00518.06
8.2.20.0000.00817.55
8.2.10.0000.00818.04
8.2.00.0070.00017.59
8.1.280.0090.00925.92
8.1.270.0040.00423.71
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0040.00722.46
8.1.230.0040.00720.88
8.1.220.0040.00418.77
8.1.210.0050.00318.87
8.1.200.0100.00017.23
8.1.190.0030.00517.22
8.1.180.0080.00019.01
8.1.170.0000.00718.59
8.1.160.0050.00321.95
8.1.150.0040.00418.91
8.1.140.0000.00817.30
8.1.130.0030.00317.82
8.1.120.0050.00317.36
8.1.110.0000.00817.31
8.1.100.0000.00717.28
8.1.90.0070.00017.32
8.1.80.0000.00717.42
8.1.70.0000.00717.31
8.1.60.0000.00817.45
8.1.50.0000.00817.43
8.1.40.0000.00817.50
8.1.30.0080.00017.42
8.1.20.0050.00317.47
8.1.10.0040.00417.52
8.1.00.0000.00717.44
8.0.300.0040.00419.98
8.0.290.0040.00416.63
8.0.280.0030.00318.31
8.0.270.0040.00417.10
8.0.260.0030.00317.17
8.0.250.0000.00716.78
8.0.240.0000.00816.83
8.0.230.0080.00016.87
8.0.220.0030.00316.70
8.0.210.0030.00716.88
8.0.200.0050.00216.87
8.0.190.0000.00716.93
8.0.180.0000.00816.86
8.0.170.0030.00616.85
8.0.160.0040.00416.67
8.0.150.0050.00216.82
8.0.140.0030.00616.82
8.0.130.0050.00213.23
8.0.120.0070.00016.69
8.0.110.0030.00516.71
8.0.100.0000.00716.81
8.0.90.0040.00416.69
8.0.80.0130.01016.77
8.0.70.0070.00016.73
8.0.60.0000.00716.82
8.0.50.0050.00316.68
8.0.30.0120.00717.09
8.0.20.0140.00517.40
8.0.10.0040.00416.74
8.0.00.0080.01216.65
7.4.330.0030.00315.05
7.4.320.0030.00316.60
7.4.300.0000.00616.62
7.4.290.0000.00716.52
7.4.280.0040.00416.63
7.4.270.0000.00716.63
7.4.260.0070.00016.46
7.4.250.0000.00716.60
7.4.240.0030.00316.60
7.4.230.0000.00716.70
7.4.220.0120.00616.68
7.4.210.0060.00916.57
7.4.200.0040.00416.53
7.4.160.0110.00416.43
7.4.150.0120.00617.40
7.4.140.0100.00817.86
7.4.130.0100.00716.44
7.4.120.0110.00616.47
7.4.110.0070.01016.61
7.4.100.0120.00616.40
7.4.90.0070.01016.39
7.4.80.0110.01119.39
7.4.70.0110.00516.21
7.4.60.0090.00916.38
7.4.50.0030.00316.37
7.4.40.0150.00916.65
7.4.30.0100.00716.47
7.4.00.0070.00914.97
7.3.330.0060.00013.24
7.3.320.0000.00513.24
7.3.310.0000.00616.09
7.3.300.0000.00716.10
7.3.290.0120.00616.23
7.3.280.0070.01016.21
7.3.270.0140.00417.40
7.3.260.0140.01016.31
7.3.240.0160.00916.46
7.3.230.0160.00016.40
7.3.210.0030.01416.22
7.3.200.0110.00919.39
7.3.190.0070.01416.55
7.3.180.0140.00716.27
7.3.170.0110.01116.39
7.3.160.0080.00816.40
7.3.120.0080.00814.61
7.3.110.0000.01614.52
7.3.100.0070.00714.71
7.3.90.0000.00914.73
7.3.80.0000.01215.04
7.3.70.0060.00614.69
7.3.60.0040.00814.54
7.3.50.0110.00314.49
7.3.40.0060.00314.33
7.3.30.0000.01414.80
7.3.20.0060.00316.55
7.3.10.0070.00716.23
7.3.00.0110.00316.38
7.2.330.0060.01216.34
7.2.320.0150.00316.61
7.2.310.0100.00616.59
7.2.300.0120.00616.48
7.2.290.0060.01116.45
7.2.250.0000.01814.85
7.2.240.0100.01014.89
7.2.230.0070.00314.87
7.2.220.0040.01114.98
7.2.210.0070.00714.81
7.2.200.0000.01614.92
7.2.190.0030.01314.99
7.2.180.0000.01214.62
7.2.170.0040.01114.62
7.2.60.0100.00316.96
7.2.00.0030.01319.11
7.1.330.0100.00615.71
7.1.320.0040.00815.45
7.1.310.0060.00615.51
7.1.300.0060.00615.83
7.1.290.0110.00015.36
7.1.280.0040.00415.61
7.1.270.0070.00315.27
7.1.260.0090.00615.59
7.1.200.0080.00315.80
7.1.100.0110.00418.13
7.1.70.0040.00417.12
7.1.60.0070.00717.23
7.1.50.0030.01616.89
7.1.00.0030.07722.45
7.0.200.0030.00816.79
7.0.140.0100.06722.09
7.0.60.0030.05019.96
7.0.50.0030.05017.86
7.0.40.0130.08020.30
7.0.30.0200.08320.13
7.0.20.0330.07720.31
7.0.10.0030.07020.09
7.0.00.0070.04020.18
5.6.280.0100.06320.91
5.6.210.0070.08020.71
5.6.200.0030.04018.14
5.6.190.0130.07720.45
5.6.180.3670.04320.46
5.6.170.0370.06720.50
5.6.160.0030.05020.59
5.6.150.0130.07018.19
5.6.140.0070.04318.11
5.6.130.0070.06318.21
5.6.120.0200.07321.14
5.6.110.0030.07720.99
5.6.100.0100.07021.04
5.6.90.0100.06021.00
5.6.80.0070.08020.35
5.6.70.4500.03720.52
5.5.350.4200.04020.42
5.5.340.0070.07718.03
5.5.330.0030.08320.27
5.5.320.3600.04720.31
5.5.310.0400.07020.32
5.5.300.0070.08018.07
5.5.290.0030.08317.95
5.5.280.0170.07320.84
5.5.270.0130.08020.64
5.5.260.0100.07720.79
5.5.250.0100.07720.68
5.5.240.0170.07720.19
5.4.450.0130.04019.32
5.4.440.0200.03319.57
5.4.430.0070.04719.41
5.4.420.0170.03719.42
5.4.410.0230.04019.28
5.4.400.0100.04318.85
5.4.390.0200.03319.17
5.4.380.0170.03718.87
5.4.370.0200.03319.19
5.4.360.0100.04319.08
5.4.350.0130.04019.13
5.4.340.0230.03719.00
5.4.320.0130.03719.00
5.4.310.0230.03019.12
5.4.300.0100.04018.83
5.4.290.0130.04019.16
5.4.280.0130.04018.84
5.4.270.0130.04019.12
5.4.260.0100.04018.95
5.4.250.0230.03018.83
5.4.240.0170.03318.99
5.4.230.0170.03319.08
5.4.220.0170.03719.23
5.4.210.0170.03719.04
5.4.200.0230.04019.25
5.4.190.0130.04318.97
5.4.180.0130.04719.11
5.4.170.0130.04019.11
5.4.160.0170.04019.19
5.4.150.0170.03319.29
5.4.140.0130.03716.50
5.4.130.0070.04316.46
5.4.120.0230.03316.32
5.4.110.0200.03716.25
5.4.100.0200.03016.25
5.4.90.0100.04016.46
5.4.80.0200.03016.56
5.4.70.0170.03316.52
5.4.60.0200.03016.43
5.4.50.0230.03316.49
5.4.40.0100.04316.55
5.4.30.0100.04016.25
5.4.20.0200.03016.55
5.4.10.0100.05016.51
5.4.00.0200.03015.86
5.3.290.0130.03714.56
5.3.280.0170.04314.81
5.3.270.0270.03014.65
5.3.260.0170.03714.68
5.3.250.0230.04014.57
5.3.240.0100.04314.60
5.3.230.0170.03714.57
5.3.220.0130.03714.70
5.3.210.0130.03714.56
5.3.200.0130.03714.56
5.3.190.0070.04314.52
5.3.180.0370.03714.65
5.3.170.0130.03714.66
5.3.160.0270.03314.55
5.3.150.0200.03714.63
5.3.140.0130.04714.52
5.3.130.0200.04314.52
5.3.120.0170.03314.53
5.3.110.0100.04014.55
5.3.100.0100.04013.97
5.3.90.0200.03313.99
5.3.80.0200.03014.16
5.3.70.0170.03314.04
5.3.60.0130.03714.02
5.3.50.0170.03314.09
5.3.40.0130.03713.86
5.3.30.0070.05014.05
5.3.20.0270.04313.59
5.3.10.0170.03013.55
5.3.00.0230.05713.88
5.2.170.0200.03712.88
5.2.160.0130.04312.88
5.2.150.0130.06012.88
5.2.140.0070.03312.88
5.2.130.0100.03012.88
5.2.120.0200.04712.88
5.2.110.0130.04012.88
5.2.100.0200.03312.88
5.2.90.0200.05712.88
5.2.80.0130.03312.88
5.2.70.0170.05712.88
5.2.60.0170.06012.88
5.2.50.0170.04312.88
5.2.40.0130.04712.88
5.2.30.0070.06012.88
5.2.20.0100.03312.88
5.2.10.0130.06012.88
5.2.00.0100.02712.88
5.1.60.0200.03712.88
5.1.50.0200.04712.88
5.1.40.0100.03312.88
5.1.30.0130.04312.88
5.1.20.0170.03712.88
5.1.10.0100.05712.88
5.1.00.0100.05712.88
5.0.50.0070.04712.88
5.0.40.0030.05312.88
5.0.30.0130.06012.88
5.0.20.0030.03312.88
5.0.10.0070.03012.88
5.0.00.0070.06312.88
4.4.90.0070.02312.88
4.4.80.0030.02312.88
4.4.70.0070.02712.88
4.4.60.0100.02712.88
4.4.50.0100.03012.88
4.4.40.0130.02312.88
4.4.30.0130.02712.88
4.4.20.0100.01712.88
4.4.10.0070.02712.88
4.4.00.0070.05312.88
4.3.110.0030.02712.88
4.3.100.0100.02712.88
4.3.90.0070.01712.88
4.3.80.0070.02712.88
4.3.70.0070.02012.88
4.3.60.0030.02312.88
4.3.50.0100.01312.88
4.3.40.0070.05012.88
4.3.30.0070.03712.88
4.3.20.0070.03312.88
4.3.10.0030.02312.88
4.3.00.0000.03712.88

preferences:
41.48 ms | 401 KiB | 5 Q