3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { const CMS_IDENTIFIER = '#ELEMENT:'; } $identifier = '#ELEMENT:register'; echo strpos(Test::CMS_IDENTIFIER, $identifier); if (0 === strpos(Test::CMS_IDENTIFIER, $identifier)) { echo 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.0080.00616.50
8.3.50.0140.00019.64
8.3.40.0070.00718.89
8.3.30.0100.00319.04
8.3.20.0040.00420.16
8.3.10.0040.00421.73
8.3.00.0080.00017.91
8.2.180.0120.00916.32
8.2.170.0140.00422.96
8.2.160.0100.00320.41
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00721.02
8.2.110.0000.00819.32
8.2.100.0090.00317.78
8.2.90.0030.00519.13
8.2.80.0030.00617.97
8.2.70.0110.00017.50
8.2.60.0070.00417.93
8.2.50.0050.00318.07
8.2.40.0030.00517.99
8.2.30.0040.00417.95
8.2.20.0080.00017.74
8.2.10.0050.00218.05
8.2.00.0000.00817.67
8.1.270.0080.00023.71
8.1.260.0040.00426.35
8.1.250.0080.00628.09
8.1.240.0060.00322.46
8.1.230.0070.00420.84
8.1.220.0000.00818.77
8.1.210.0030.00619.11
8.1.200.0050.00517.35
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0000.00818.50
8.1.160.0050.00221.95
8.1.150.0070.00018.81
8.1.140.0000.00717.37
8.1.130.0000.00717.73
8.1.120.0000.00717.40
8.1.110.0080.00017.41
8.1.100.0000.00717.32
8.1.90.0070.00017.29
8.1.80.0070.00017.43
8.1.70.0070.00017.34
8.1.60.0030.00517.55
8.1.50.0050.00317.46
8.1.40.0040.00417.46
8.1.30.0000.00817.57
8.1.20.0040.00417.45
8.1.10.0040.00417.42
8.1.00.0030.00617.41
8.0.300.0000.00720.03
8.0.290.0080.00016.63
8.0.280.0000.00718.48
8.0.270.0030.00317.24
8.0.260.0040.00417.25
8.0.250.0030.00316.95
8.0.240.0000.00816.90
8.0.230.0000.01016.89
8.0.220.0000.00616.84
8.0.210.0030.00316.76
8.0.200.0000.00716.85
8.0.190.0000.00816.88
8.0.180.0000.00716.83
8.0.170.0000.00816.84
8.0.160.0000.00716.66
8.0.150.0030.00416.77
8.0.140.0040.00416.79
8.0.130.0030.00313.22
8.0.120.0080.00016.79
8.0.110.0040.00416.79
8.0.100.0030.00516.71
8.0.90.0000.00716.82
8.0.80.0000.01616.79
8.0.70.0000.00716.72
8.0.60.0000.00716.94
8.0.50.0040.00416.71
8.0.30.0120.00716.93
8.0.20.0120.00817.40
8.0.10.0000.00816.98
8.0.00.0080.01116.81
7.4.330.0050.00015.09
7.4.320.0060.00016.53
7.4.300.0030.00316.45
7.4.290.0030.00316.62
7.4.280.0040.00416.61
7.4.270.0030.00316.54
7.4.260.0000.00716.44
7.4.250.0040.00416.56
7.4.240.0020.00516.56
7.4.230.0030.00316.50
7.4.220.0100.00716.63
7.4.210.0040.01116.61
7.4.200.0000.00816.65
7.4.160.0030.01316.39
7.4.150.0260.01317.40
7.4.140.0110.00817.86
7.4.130.0080.01116.41
7.4.120.0150.00316.46
7.4.110.0140.00316.48
7.4.100.0070.01016.53
7.4.90.0110.00716.36
7.4.80.0030.01519.39
7.4.70.0090.01216.60
7.4.60.0130.00416.25
7.4.50.0030.00516.37
7.4.40.0160.00716.56
7.4.30.0080.00816.64
7.4.00.0070.01114.99
7.3.330.0000.00713.29
7.3.320.0060.00013.19
7.3.310.0000.00716.14
7.3.300.0000.00816.20
7.3.290.0040.00416.20
7.3.280.0120.00316.25
7.3.270.0100.01017.40
7.3.260.0090.00916.25
7.3.240.0080.01416.39
7.3.230.0110.00516.53
7.3.210.0130.01016.22
7.3.200.0140.00719.39
7.3.190.0130.00716.46
7.3.180.0200.00016.22
7.3.170.0060.01016.27
7.3.160.0150.00316.28
7.3.120.0090.00914.94
7.3.110.0100.00714.95
7.3.100.0100.00714.90
7.3.90.0110.00414.61
7.3.80.0040.00814.39
7.3.70.0000.01314.62
7.3.60.0070.01014.88
7.3.50.0030.01014.63
7.3.40.0060.00614.59
7.3.30.0040.01214.50
7.3.20.0100.00716.45
7.3.10.0050.01116.60
7.3.00.0060.01016.59
7.2.330.0180.00316.70
7.2.320.0130.00316.59
7.2.310.0160.00616.30
7.2.300.0130.00316.67
7.2.290.0090.00616.54
7.2.250.0030.01615.15
7.2.240.0060.00914.77
7.2.230.0070.01014.88
7.2.220.0070.01114.89
7.2.210.0040.01214.96
7.2.200.0070.00714.91
7.2.190.0030.01314.98
7.2.180.0110.00415.00
7.2.170.0100.00314.68
7.2.160.0100.00714.82
7.2.150.0030.01516.88
7.2.140.0030.01016.55
7.2.130.0020.01416.59
7.2.120.0090.00716.77
7.2.110.0030.01316.58
7.2.100.0050.01316.71
7.2.90.0050.00917.00
7.2.80.0060.00816.67
7.2.70.0110.00616.79
7.2.60.0080.00716.53
7.2.50.0080.00816.78
7.2.40.0020.01316.82
7.2.30.0030.01016.85
7.2.20.0030.00816.92
7.2.10.0050.00916.82
7.2.00.0030.00916.81
7.1.330.0090.00315.84
7.1.320.0000.01615.64
7.1.310.0070.00715.81
7.1.300.0030.01315.72
7.1.290.0040.01115.65
7.1.280.0040.00815.72
7.1.270.0080.01115.79
7.1.260.0100.00315.69
7.1.250.0070.00515.62
7.1.70.0070.00317.03
7.1.60.0160.00619.40
7.1.50.0070.01716.55
7.1.00.0000.08022.35
7.0.200.0000.00716.61
7.0.140.0070.07021.99
7.0.60.0200.06320.02
7.0.50.0130.07317.96
7.0.40.0100.08320.23
7.0.30.0500.07320.06
7.0.20.0230.05020.15
7.0.10.0130.05720.09
7.0.00.0130.08020.16
5.6.280.0030.07321.09
5.6.210.0170.07020.50
5.6.200.0200.07318.17
5.6.190.0170.03320.55
5.6.180.3570.04020.77
5.6.170.0130.04720.57
5.6.160.0100.05720.51
5.6.150.0070.08018.18
5.6.140.0030.08718.29
5.6.130.0100.04018.15
5.6.120.0100.08021.11
5.6.110.0100.05320.99
5.6.100.0070.08721.01
5.6.90.0030.05021.02
5.6.80.0130.04320.35
5.6.70.4600.04020.27
5.5.350.0430.06720.44
5.5.340.0030.04017.97
5.5.330.0070.06020.28
5.5.320.3900.03320.34
5.5.310.0170.03720.37
5.5.300.0130.07318.04
5.5.290.0170.05317.95
5.5.280.0130.07720.67
5.5.270.0100.08020.72
5.5.260.0170.08020.64
5.5.250.0070.08320.61
5.5.240.0230.03720.25
5.4.450.0270.05019.29
5.4.440.0200.04019.41
5.4.430.0270.04019.32
5.4.420.0130.04319.47
5.4.410.0270.04719.34
5.4.400.0470.04319.14
5.4.390.0270.05019.13
5.4.380.0170.05018.50
5.4.370.0100.05318.50
5.4.360.0030.06018.68
5.4.350.0070.06718.46
5.4.340.0130.05318.63
5.4.320.0060.04212.50
5.4.310.0080.04112.49
5.4.300.0060.03912.50
5.4.290.0060.03712.49
5.4.280.0060.03412.39
5.4.270.0020.04012.39
5.4.260.0070.03512.39
5.4.250.0030.04012.39
5.4.240.0070.03412.39
5.4.230.0070.03512.38
5.4.220.0040.03612.39
5.4.210.0070.03312.39
5.4.200.0110.03712.38
5.4.190.0100.03512.38
5.4.180.0040.04112.38
5.4.170.0120.03312.39
5.4.160.0050.03512.39
5.4.150.0060.03812.38
5.4.140.0080.04212.07
5.4.130.0050.03612.05
5.4.120.0120.03112.01
5.4.110.0100.03112.00
5.4.100.0100.03412.01
5.4.90.0050.03712.01
5.4.80.0040.03812.01
5.4.70.0100.03112.00
5.4.60.0080.04512.00
5.4.50.0030.03712.00
5.4.40.0060.03411.99
5.4.30.0080.04311.99
5.4.20.0060.03411.99
5.4.10.0080.04111.99
5.4.00.0090.03211.48
5.3.290.0040.04112.80
5.3.280.0120.03412.71
5.3.270.0100.04412.72
5.3.260.0040.04012.72
5.3.250.0080.03912.72
5.3.240.0070.03812.72
5.3.230.0100.04112.71
5.3.220.0040.03812.68
5.3.210.0040.04212.68
5.3.200.0050.03712.68
5.3.190.0060.03612.68
5.3.180.0080.03812.67
5.3.170.0070.03512.67
5.3.160.0060.03612.68
5.3.150.0040.04012.68
5.3.140.0080.04212.66
5.3.130.0060.04312.66
5.3.120.0040.03912.66
5.3.110.0070.04212.66
5.3.100.0090.03412.11
5.3.90.0070.03512.09
5.3.80.0090.03312.09
5.3.70.0080.03412.08
5.3.60.0080.03612.07
5.3.50.0070.03912.02
5.3.40.0090.04912.02
5.3.30.0030.03611.97
5.3.20.0080.03111.75
5.3.10.0040.03611.72
5.3.00.0070.04011.71
5.2.170.0040.0429.21
5.2.160.0060.0279.21
5.2.150.0090.0259.21
5.2.140.0070.0299.21
5.2.130.0020.0329.17
5.2.120.0060.0279.17
5.2.110.0060.0309.17
5.2.100.0030.0369.17
5.2.90.0030.0309.17
5.2.80.0090.0259.17
5.2.70.0080.0279.16
5.2.60.0050.0299.12
5.2.50.0040.0319.09
5.2.40.0070.0349.07
5.2.30.0040.0309.04
5.2.20.0030.0299.03
5.2.10.0060.0278.93
5.2.00.0040.0288.80
5.1.60.0050.0238.08
5.1.50.0050.0228.08
5.1.40.0020.0268.06
5.1.30.0090.0218.40
5.1.20.0060.0248.43
5.1.10.0050.0248.15
5.1.00.0070.0228.15
5.0.50.0040.0206.63
5.0.40.0030.0196.49
5.0.30.0040.0356.30
5.0.20.0010.0216.27
5.0.10.0030.0206.25
5.0.00.0020.0316.24
4.4.90.0060.0124.78
4.4.80.0030.0154.75
4.4.70.0010.0164.76
4.4.60.0030.0144.76
4.4.50.0030.0144.77
4.4.40.0020.0254.71
4.4.30.0030.0154.76
4.4.20.0040.0144.84
4.4.10.0020.0164.85
4.4.00.0030.0244.76
4.3.110.0050.0144.67
4.3.100.0030.0164.67
4.3.90.0030.0144.63
4.3.80.0020.0244.58
4.3.70.0020.0144.63
4.3.60.0060.0144.63
4.3.50.0010.0174.63
4.3.40.0050.0224.54
4.3.30.0010.0173.30
4.3.20.0020.0203.28
4.3.10.0030.0193.23
4.3.00.0000.02015.88

preferences:
58.27 ms | 400 KiB | 5 Q