3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ const AB♥ = "alphabet"; } $rc = new ReflectionClass("Test"); $bad = "♥"; $key = array_keys( $rc->getConstants())[0]; $substr = substr( $key, -1,1 ); //$substr = mb_substr( $key, -1,1 ); // 5.6 if ( $substr === $bad ) { trigger_error( "'$bad' in '$key'" ); } // Notice: '♥' in 'AB♥' ...

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.0090.00916.38
8.3.50.0080.01022.89
8.3.40.0110.00418.46
8.3.30.0100.00718.82
8.3.20.0040.00420.16
8.3.10.0050.00323.48
8.3.00.0040.00417.50
8.2.180.0100.01318.31
8.2.170.0120.00322.96
8.2.160.0000.01420.37
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00421.02
8.2.110.0090.00020.53
8.2.100.0080.00417.72
8.2.90.0000.00818.22
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0080.00017.93
8.2.50.0030.00518.07
8.2.40.0050.00319.95
8.2.30.0040.00417.94
8.2.20.0060.00317.69
8.2.10.0030.00517.97
8.2.00.0040.00417.59
8.1.280.0070.01025.92
8.1.270.0060.00323.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00822.09
8.1.230.0040.00720.91
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0080.00817.00
8.1.190.0000.00817.00
8.1.180.0030.00618.10
8.1.170.0040.00418.53
8.1.160.0000.00921.92
8.1.150.0000.00718.87
8.1.140.0040.00417.39
8.1.130.0000.00817.84
8.1.120.0000.00817.36
8.1.110.0040.00417.44
8.1.100.0040.00417.36
8.1.90.0000.00717.41
8.1.80.0040.00317.45
8.1.70.0030.00317.41
8.1.60.0090.00017.43
8.1.50.0000.00917.39
8.1.40.0040.00417.34
8.1.30.0000.00917.63
8.1.20.0000.00717.66
8.1.10.0070.00017.48
8.1.00.0000.00817.49
8.0.300.0080.00019.97
8.0.290.0070.00016.58
8.0.280.0040.00418.29
8.0.270.0070.00017.10
8.0.260.0030.00317.12
8.0.250.0070.00016.92
8.0.240.0000.00816.80
8.0.230.0030.00416.83
8.0.220.0070.00016.90
8.0.210.0000.00816.89
8.0.200.0060.00016.91
8.0.190.0000.00716.78
8.0.180.0000.00816.86
8.0.170.0030.00616.73
8.0.160.0000.00716.72
8.0.150.0040.00416.72
8.0.140.0040.00416.77
8.0.130.0000.00713.28
8.0.120.0050.00316.71
8.0.110.0040.00416.84
8.0.100.0030.00316.77
8.0.90.0070.00016.65
8.0.80.0130.00616.80
8.0.70.0040.00416.81
8.0.60.0070.00016.71
8.0.50.0040.00416.95
8.0.30.0100.01017.04
8.0.20.0120.00617.40
8.0.10.0060.00316.91
8.0.00.0100.00816.66
7.4.330.0060.00015.03
7.4.320.0000.00616.61
7.4.300.0000.00616.52
7.4.290.0000.00716.51
7.4.280.0040.00416.64
7.4.270.0040.00416.61
7.4.260.0030.00316.64
7.4.250.0030.00516.56
7.4.240.0000.00716.47
7.4.230.0030.00316.32
7.4.220.0090.00916.59
7.4.210.0130.00916.63
7.4.200.0000.00716.32
7.4.160.0060.00916.51
7.4.150.0110.00617.40
7.4.140.0080.01317.86
7.4.130.0120.00716.61
7.4.120.0100.00816.46
7.4.110.0070.01116.47
7.4.100.0060.01016.50
7.4.90.0090.00916.52
7.4.80.0030.01419.39
7.4.70.0160.00316.36
7.4.60.0100.00616.48
7.4.50.0030.00316.33
7.4.40.0090.00616.54
7.4.30.0130.00316.42
7.4.00.0090.00814.84
7.3.330.0060.00213.30
7.3.320.0040.00413.18
7.3.310.0070.00016.19
7.3.300.0070.00016.25
7.3.290.0070.00716.23
7.3.280.0090.00816.18
7.3.270.0150.00317.40
7.3.260.0060.01216.19
7.3.250.0060.01116.41
7.3.240.0080.00816.48
7.3.230.0040.01416.59
7.3.210.0130.00316.31
7.3.200.0140.00619.39
7.3.190.0140.00316.28
7.3.180.0100.00716.33
7.3.170.0140.00716.49
7.3.160.0080.00816.48
7.3.120.0040.01414.89
7.3.110.0060.00914.79
7.3.100.0100.00314.57
7.3.90.0070.01015.01
7.3.80.0000.01515.16
7.3.70.0090.00314.54
7.3.60.0030.01014.84
7.3.50.0090.00614.81
7.3.40.0120.00614.53
7.3.30.0090.00614.73
7.3.20.0070.00716.48
7.3.10.0000.01216.54
7.3.00.0100.00316.64
7.2.330.0070.01116.64
7.2.320.0030.01316.38
7.2.310.0060.01216.30
7.2.300.0160.00616.70
7.2.290.0070.01016.71
7.2.250.0110.00714.80
7.2.240.0070.01415.14
7.2.230.0000.01114.47
7.2.220.0140.00314.68
7.2.210.0110.00415.15
7.2.200.0060.00914.82
7.2.190.0060.00614.93
7.2.180.0100.00614.89
7.2.170.0060.01014.80
7.2.60.0090.00617.08
7.1.330.0070.00715.57
7.1.320.0030.00715.48
7.1.310.0000.01715.68
7.1.300.0110.00415.78
7.1.290.0070.01115.92
7.1.280.0080.00815.59
7.1.270.0040.01115.87
7.1.260.0040.00815.55
7.1.200.0100.00015.88
7.1.70.0030.01217.01
7.1.60.0100.01319.40
7.1.50.0150.00916.99
7.1.00.0030.07722.41
7.0.200.0160.00014.66
7.0.140.0200.05322.09
7.0.60.0030.04020.03
7.0.50.0000.04717.84
7.0.40.0170.05020.23
7.0.30.0370.06320.19
7.0.20.0300.08020.10
7.0.10.0070.04720.19
7.0.00.0000.04320.24
5.6.280.0000.07720.82
5.6.210.0000.04720.64
5.6.200.0030.04718.25
5.6.190.0100.03720.60
5.6.180.0230.04020.64
5.6.170.0230.05020.45
5.6.160.0030.08320.39
5.6.150.0100.08018.29
5.6.140.0000.08718.13
5.6.130.0100.07018.28
5.6.120.0230.07320.95
5.6.110.0100.08021.14
5.6.100.0170.07020.98
5.6.90.0030.04721.08
5.6.80.0100.07020.52
5.5.350.4300.03320.41
5.5.340.0100.06718.02
5.5.330.0070.07720.32
5.5.320.0270.07720.24
5.5.310.0200.08320.30
5.5.300.0070.05018.02
5.5.290.0070.08017.95
5.5.280.0130.04320.89
5.5.270.0070.08320.96
5.5.260.0130.08020.86
5.5.250.0170.08020.68
5.5.240.0170.07720.03
5.4.450.3200.04019.52
5.4.440.0100.06319.18
5.4.430.3330.04019.54
5.4.420.3900.04019.64
5.4.410.3230.04019.28
5.4.400.3470.04019.05
5.4.390.3470.03718.88
5.4.380.3430.03019.22
5.4.370.3330.04018.98
5.4.360.3330.03718.86
5.4.350.3600.04319.31
5.4.340.3430.03718.85
5.4.320.3600.04319.06
5.4.310.3570.03719.20
5.4.300.3470.03719.15
5.4.290.3470.04019.24
5.4.280.3770.02719.21
5.4.270.3630.03719.22
5.4.260.3200.03719.09
5.4.250.3600.03719.05
5.4.240.3630.03318.94
5.4.230.3530.04019.21
5.4.220.3670.03019.05
5.4.210.4000.04319.09
5.4.200.3670.03719.23
5.4.190.3870.03319.23
5.4.180.3670.02019.09
5.4.170.3270.04319.14
5.4.160.3370.05719.20
5.4.150.3500.03719.12
5.4.140.3800.03716.67
5.4.130.3570.04016.33
5.4.120.3570.03016.32
5.4.110.3600.03016.19
5.4.100.3470.03316.45
5.4.90.3130.03316.37
5.4.80.3970.04716.44
5.4.70.3530.03316.52
5.4.60.3530.03316.56
5.4.50.4070.04316.23
5.4.40.3800.03016.43
5.4.30.2800.03016.32
5.4.20.2400.04016.32
5.4.10.3000.04016.13
5.4.00.2330.02715.79
5.3.290.3630.03314.71
5.3.280.3670.03014.71
5.3.270.3800.03314.82
5.3.260.3500.03314.58
5.3.250.3500.03714.57
5.3.240.3500.03714.53
5.3.230.3430.03014.50
5.3.220.3630.03714.64
5.3.210.3370.04014.61
5.3.200.3470.02714.45
5.3.190.3530.03714.55
5.3.180.3470.03714.72
5.3.170.3500.04314.64
5.3.160.3900.03714.55
5.3.150.3700.02314.47
5.3.140.4030.04314.52
5.3.130.1800.03714.46
5.3.120.1830.04014.41
5.3.110.2900.03014.55
5.3.100.2530.03013.94
5.3.90.3330.04714.09
5.3.80.3500.03013.93
5.3.70.3100.03014.07
5.3.60.2870.03313.93
5.3.50.2770.03313.97
5.3.40.2530.04013.99
5.3.30.3600.04313.83
5.3.20.2330.03713.61
5.3.10.0030.03313.88
5.3.00.0870.03713.66
5.2.170.2430.02011.05
5.2.160.2400.02711.12
5.2.150.2070.02711.25
5.2.140.1500.03011.05
5.2.130.0330.03311.11
5.2.120.0070.02311.11
5.2.110.0000.03011.25
5.2.100.2730.03311.25
5.2.90.3200.03011.07
5.2.80.3270.03011.25
5.2.70.3270.03011.02
5.2.60.2970.02711.27
5.2.50.2970.02710.92
5.2.40.2970.02011.08
5.2.30.2330.02711.18
5.2.20.2170.02711.07
5.2.10.2370.03010.87
5.2.00.2400.02710.71
5.1.60.2270.0309.98
5.1.50.2530.01710.00
5.1.40.2630.0179.96
5.1.30.2370.02310.38
5.1.20.2570.02310.39
5.1.10.2470.0209.98
5.1.00.2330.02310.20
5.0.50.1470.0208.47
5.0.40.1170.0208.29
5.0.30.0470.0308.11
5.0.20.0070.0138.28
5.0.10.0000.0208.10
5.0.00.0030.0278.21
4.4.90.1430.0136.17
4.4.80.1330.0136.17
4.4.70.1170.0136.17
4.4.60.1170.0136.17
4.4.50.1430.0176.17
4.4.40.1300.0236.17
4.4.30.1270.0136.17
4.4.20.1130.0176.17
4.4.10.1200.0106.17
4.4.00.1200.0276.13
4.3.110.1030.0176.13
4.3.100.0000.0176.13
4.3.90.0000.0176.16
4.3.80.0000.0236.17
4.3.70.0000.0236.17
4.3.60.0000.0176.17
4.3.50.0000.0176.17
4.3.40.0100.0336.17
4.3.30.0800.0236.17
4.3.20.0570.0176.17
4.3.10.0730.0206.17
4.3.00.0570.0176.17

preferences:
46.5 ms | 401 KiB | 5 Q