3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ const ABC♥ = "alphabet"; } $class = new ReflectionClass("Test"); $bad_char = "♥"; $constants = $class->getConstants(); $keys = array_keys($constants); for ( $i=0, $ct=count($keys); $i < $ct; $i++) { $target = $keys[ $i ]; if ( strpos( $target, $bad_char) !== false ) { var_dump(substr($bad_char,0,1)); var_dump(mb_substr($bad_char,0,1)); trigger_error( "'$bad_char' in '$target'" ); }}

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.0150.00618.72
8.3.30.0090.00619.17
8.3.20.0070.00020.21
8.3.10.0030.00623.66
8.3.00.0040.00419.30
8.2.170.0100.00722.96
8.2.160.0070.00720.22
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00019.77
8.2.110.0030.00622.07
8.2.100.0150.00017.97
8.2.90.0000.00719.22
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0030.00618.03
8.2.50.0060.00318.07
8.2.40.0040.00418.22
8.2.30.0050.00218.11
8.2.20.0040.00417.85
8.2.10.0000.00818.18
8.2.00.0020.00517.73
8.1.270.0000.00823.82
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00423.97
8.1.230.0110.00019.07
8.1.220.0080.00017.79
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0030.00618.51
8.1.160.0020.00521.88
8.1.150.0040.00418.88
8.1.140.0070.00017.49
8.1.130.0030.00517.81
8.1.120.0040.00417.47
8.1.110.0000.00717.33
8.1.100.0050.00217.43
8.1.90.0070.00017.34
8.1.80.0030.00317.51
8.1.70.0050.00317.45
8.1.60.0080.00017.59
8.1.50.0000.00817.41
8.1.40.0080.00017.62
8.1.30.0040.00417.63
8.1.20.0000.00817.75
8.1.10.0030.00617.63
8.1.00.0040.00417.42
8.0.300.0030.00518.77
8.0.290.0040.00416.75
8.0.280.0000.00718.39
8.0.270.0000.00717.22
8.0.260.0030.00317.18
8.0.250.0000.00717.04
8.0.240.0030.00317.01
8.0.230.0030.00317.05
8.0.220.0030.00317.02
8.0.210.0000.00717.04
8.0.200.0040.00417.06
8.0.190.0040.00417.05
8.0.180.0030.00317.04
8.0.170.0030.00617.05
8.0.160.0000.00717.03
8.0.150.0040.00716.88
8.0.140.0070.00016.93
8.0.130.0080.00013.44
8.0.120.0040.00416.87
8.0.110.0030.00617.00
8.0.100.0040.00416.87
8.0.90.0000.00717.07
8.0.80.0100.00717.06
8.0.70.0050.00316.88
8.0.60.0040.00416.88
8.0.50.0040.00416.88
8.0.30.0100.01017.21
8.0.20.0070.01217.40
8.0.10.0060.00317.08
8.0.00.0090.01216.77
7.4.330.0000.00515.15
7.4.320.0030.00316.59
7.4.300.0070.00016.41
7.4.290.0080.00016.59
7.4.280.0050.00316.50
7.4.270.0030.00316.48
7.4.260.0000.00716.58
7.4.250.0040.00416.45
7.4.240.0040.00316.50
7.4.230.0040.00416.48
7.4.220.0070.01016.49
7.4.210.0040.01716.60
7.4.200.0030.00316.69
7.4.160.0030.01316.66
7.4.150.0140.00317.40
7.4.140.0100.00917.86
7.4.130.0100.00816.51
7.4.120.0100.00716.57
7.4.110.0120.00616.46
7.4.100.0130.00316.47
7.4.90.0070.01016.43
7.4.80.0140.00319.39
7.4.70.0070.01016.62
7.4.60.0060.01016.55
7.4.50.0000.00616.32
7.4.40.0130.00916.53
7.4.30.0170.00316.27
7.4.00.0070.01215.07
7.3.330.0050.00213.29
7.3.320.0070.00013.38
7.3.310.0050.00316.28
7.3.300.0030.00316.41
7.3.290.0060.01016.50
7.3.280.0080.00816.41
7.3.270.0070.01117.40
7.3.260.0100.01016.44
7.3.250.0120.00616.65
7.3.240.0140.00816.69
7.3.230.0120.00916.39
7.3.210.0080.00816.57
7.3.200.0060.00919.39
7.3.190.0100.00716.52
7.3.180.0080.00816.59
7.3.170.0060.00916.67
7.3.160.0100.00616.44
7.3.120.0070.00715.08
7.3.110.0000.01714.70
7.3.100.0120.00415.14
7.3.90.0100.00615.04
7.3.80.0070.00714.90
7.3.70.0040.00815.00
7.3.60.0000.01014.94
7.3.50.0030.00614.69
7.3.40.0060.00914.93
7.3.30.0060.00914.88
7.3.20.0120.00016.89
7.3.10.0100.00316.54
7.3.00.0050.00816.63
7.2.330.0090.01016.84
7.2.320.0040.01416.54
7.2.310.0090.00616.69
7.2.300.0060.01116.82
7.2.290.0110.00516.50
7.2.250.0040.01215.16
7.2.240.0120.00415.24
7.2.230.0070.00315.29
7.2.220.0040.01515.26
7.2.210.0100.00715.10
7.2.200.0060.00915.29
7.2.190.0080.00814.83
7.2.180.0060.01215.29
7.2.170.0090.00314.94
7.2.130.0060.00316.59
7.2.120.0060.01016.75
7.2.110.0070.00316.82
7.2.100.0030.00617.00
7.2.90.0070.00317.11
7.2.80.0030.00916.86
7.2.70.0100.00016.62
7.2.60.0060.00616.92
7.2.50.0080.00416.75
7.2.40.0080.00416.91
7.2.30.0030.00717.05
7.2.20.0060.00616.98
7.2.10.0050.00517.08
7.2.00.0060.00918.47
7.1.330.0100.00315.61
7.1.320.0030.01016.07
7.1.310.0030.01015.52
7.1.300.0070.01015.83
7.1.290.0000.01215.71
7.1.280.0060.00615.86
7.1.270.0070.00715.77
7.1.260.0030.01016.06
7.1.250.0000.00915.82
7.1.240.0030.00715.79
7.1.230.0090.00315.84
7.1.220.0060.00615.96
7.1.210.0070.00715.96
7.1.200.0050.00715.94
7.1.190.0040.00715.91
7.1.180.0100.00315.95
7.1.170.0030.00715.75
7.1.160.0030.01015.69
7.1.150.0110.00315.96
7.1.140.0030.00615.61
7.1.130.0040.00815.80
7.1.120.0080.00515.91
7.1.110.0100.00315.90
7.1.100.0060.00617.13
7.1.90.0040.00715.82
7.1.80.0070.00715.75
7.1.70.0020.00816.41
7.1.60.0070.00316.68
7.1.50.0060.01216.40
7.1.40.0040.00715.97
7.1.30.0100.00316.01
7.1.20.0110.00015.83
7.1.10.0060.00315.46
7.1.00.0020.04219.20
7.0.330.0070.00315.38
7.0.320.0030.01015.47
7.0.310.0040.00415.34
7.0.300.0070.00315.39
7.0.290.0030.00715.48
7.0.280.0050.00515.30
7.0.270.0040.00815.18
7.0.260.0060.00615.52
7.0.250.0000.00915.65
7.0.240.0060.00315.47
7.0.230.0070.00315.23
7.0.220.0070.00715.43
7.0.210.0040.00415.55
7.0.200.0070.00716.10
7.0.190.0040.00415.52
7.0.180.0070.00315.43
7.0.170.0050.00515.58
7.0.160.0030.00915.39
7.0.150.0060.00615.44
7.0.140.0020.03618.90
7.0.130.0030.00915.32
7.0.120.0060.00615.38
7.0.110.0030.00715.54
7.0.100.0070.00715.56
7.0.90.0060.00315.49
7.0.80.0060.00315.72
7.0.70.0000.01015.26
7.0.60.0050.04317.74
7.0.50.0060.04416.52
7.0.40.0080.02816.78
7.0.30.0180.04316.87
7.0.20.0220.04216.76
7.0.10.0080.04516.89
7.0.00.0090.03516.96
5.6.380.0090.00314.64
5.6.370.0070.00414.57
5.6.360.0140.00014.72
5.6.350.0030.00614.45
5.6.340.0060.00614.52
5.6.330.0080.00414.72
5.6.320.0110.00014.63
5.6.310.0030.01014.03
5.6.300.0000.01414.40
5.6.290.0070.00314.43
5.6.280.0020.04017.51
5.6.270.0100.00314.61
5.6.260.0000.01114.28
5.6.250.0080.00814.58
5.6.240.0060.00814.54
5.6.230.0070.00414.49
5.6.220.0000.01014.49
5.6.210.0060.02317.54
5.6.200.0030.02816.37
5.6.190.0050.04017.52
5.6.180.1770.02317.44
5.6.170.0160.03617.52
5.6.160.0100.04017.35
5.6.150.0030.04816.29
5.6.140.0100.02816.27
5.6.130.0090.02716.13
5.6.120.0030.02617.61
5.6.110.0090.03717.78
5.6.100.0070.04817.78
5.6.90.0100.03317.73
5.6.80.0050.02217.38
5.6.70.2320.02517.25
5.6.60.0070.00714.60
5.6.50.0030.00714.30
5.6.40.0030.00914.30
5.6.30.0070.00414.29
5.6.20.0040.00714.23
5.6.10.0070.00714.46
5.6.00.0030.00614.22
5.5.380.0030.01011.11
5.5.370.0000.00911.10
5.5.360.0050.00211.07
5.5.350.0040.04015.90
5.5.340.0030.04314.63
5.5.330.0050.04215.69
5.5.320.0230.03815.88
5.5.310.0110.02315.80
5.5.300.0100.03814.50
5.5.290.0030.03314.61
5.5.280.0080.02515.96
5.5.270.0060.04315.93
5.5.260.0120.03516.08
5.5.250.0100.03915.96
5.5.240.0030.04015.62
5.5.230.0000.00710.97
5.5.220.0070.00011.19
5.5.210.0060.00311.00
5.5.200.0040.00410.99
5.5.190.0000.00611.18
5.5.180.0000.00811.33
5.5.170.0030.00710.97
5.5.160.0000.01111.35
5.5.150.0030.00711.13
5.5.140.0030.00911.28
5.5.130.0030.00611.32
5.5.120.0000.01211.00
5.5.110.0080.00011.34
5.5.100.0000.00811.04
5.5.90.0030.00511.27
5.5.80.0030.00311.01
5.5.70.0040.00810.90
5.5.60.0030.00611.25
5.5.50.0030.00311.32
5.5.40.0030.00311.14
5.5.30.0000.01111.10
5.5.20.0000.01111.00
5.5.10.0070.00311.14
5.5.00.0050.00511.17
5.4.450.0480.02615.27
5.4.440.0330.02615.41
5.4.430.0360.02815.31
5.4.420.0330.02515.24
5.4.410.0080.02715.05
5.4.400.0230.02314.91
5.4.390.0150.03014.85
5.4.380.0050.03314.93
5.4.370.0050.02414.94
5.4.360.0030.02514.75
5.4.350.0060.02011.57
5.4.340.0080.02411.56
5.4.330.0030.00611.14
5.4.320.0040.02311.79
5.4.310.0050.02311.91
5.4.300.0060.02011.76
5.4.290.0060.02011.78
5.4.280.0060.01811.80
5.4.270.0020.02211.83
5.4.260.0040.02111.77
5.4.250.0070.01911.84
5.4.240.0050.01911.80
5.4.230.0060.02011.75
5.4.220.0040.02311.64
5.4.210.0050.02211.69
5.4.200.0050.02011.73
5.4.190.0040.02211.74
5.4.180.0060.02211.86
5.4.170.0040.02011.64
5.4.160.0050.02011.74
5.4.150.0050.02111.68
5.4.140.0060.02111.48
5.4.130.0060.01811.63
5.4.120.0040.02011.78
5.4.110.0030.02211.65
5.4.100.0040.02111.59
5.4.90.0040.02411.46
5.4.80.0070.02711.59
5.4.70.0020.02211.61
5.4.60.0080.02011.45
5.4.50.0030.02611.45
5.4.40.0040.02311.45
5.4.30.0070.02011.60
5.4.20.0050.01911.56
5.4.10.0040.02011.63
5.4.00.0100.01811.41
5.3.290.0020.02511.85
5.3.280.0080.02111.80
5.3.270.0050.02111.81
5.3.260.0020.02811.81
5.3.250.0090.01911.81
5.3.240.0040.02111.81
5.3.230.0060.01911.80
5.3.220.0060.02011.79
5.3.210.0060.01911.79
5.3.200.0080.01911.79
5.3.190.0080.01711.79
5.3.180.0040.02011.79
5.3.170.0070.01911.79
5.3.160.0040.02211.79
5.3.150.0080.02211.79
5.3.140.0020.02511.78
5.3.130.0050.02211.78
5.3.120.0060.02211.78
5.3.110.0060.02311.78
5.3.100.0060.01811.51
5.3.90.0050.02411.50
5.3.80.0060.02011.49
5.3.70.0070.01911.49
5.3.60.0080.02111.48
5.3.50.0020.02411.46
5.3.40.0060.01911.46
5.3.30.0060.02311.44
5.3.20.0070.01811.33
5.3.10.0020.02211.31
5.3.00.0020.02311.30
5.2.170.0060.01710.05
5.2.160.0020.02110.05
5.2.150.0060.01710.05
5.2.140.0020.02110.05
5.2.130.0040.01810.04
5.2.120.0030.01610.03
5.2.110.0060.01410.04
5.2.100.0030.01710.04
5.2.90.0050.01810.04
5.2.80.0030.01810.04
5.2.70.0020.02210.03
5.2.60.0080.01310.01
5.2.50.0040.0189.99
5.2.40.0050.0169.98
5.2.30.0040.0189.97
5.2.20.0050.0159.97
5.2.10.0060.0149.92
5.2.00.0040.0169.85
5.1.60.0020.0179.49
5.1.50.0030.0179.49
5.1.40.0020.0179.48
5.1.30.0030.0169.65
5.1.20.0030.0169.66
5.1.10.0020.0179.53
5.1.00.0050.0169.53
5.0.50.0040.0108.77
5.0.40.0050.0098.70
5.0.30.0040.0198.61
5.0.20.0010.0138.59
5.0.10.0020.0118.58
5.0.00.0010.0198.58
4.4.90.0030.0097.84
4.4.80.0030.0097.83
4.4.70.0030.0087.83
4.4.60.0020.0107.83
4.4.50.0040.0087.83
4.4.40.0010.0147.80
4.4.30.0040.0097.83
4.4.20.0040.0087.87
4.4.10.0030.0097.87
4.4.00.0020.0157.83
4.3.110.0030.0097.79
4.3.100.0040.0077.78
4.3.90.0030.0077.77
4.3.80.0030.0157.74
4.3.70.0010.0117.76
4.3.60.0020.0097.76
4.3.50.0060.0077.76
4.3.40.0040.0137.72
4.3.30.0010.0107.10
4.3.20.0010.0107.09
4.3.10.0020.0097.07
4.3.00.0080.0129.01

preferences:
44.85 ms | 400 KiB | 5 Q