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 ( mb_substr( $target, -1,1) == $bad_char ) { 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.0140.00718.79
8.3.30.0150.00018.85
8.3.20.0000.00720.16
8.3.10.0040.00423.71
8.3.00.0080.00019.38
8.2.170.0090.00622.96
8.2.160.0030.01620.21
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.15
8.2.110.0030.01319.37
8.2.100.0040.00818.03
8.2.90.0040.00419.35
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0000.00818.03
8.2.50.0060.00318.07
8.2.40.0000.00818.34
8.2.30.0000.00818.07
8.2.20.0000.00817.73
8.2.10.0000.00718.05
8.2.00.0050.00217.81
8.1.270.0030.00523.88
8.1.260.0000.00726.35
8.1.250.0030.00628.09
8.1.240.0090.00921.92
8.1.230.0050.00520.77
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0080.00317.23
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00518.59
8.1.160.0040.00421.89
8.1.150.0040.00418.90
8.1.140.0070.00017.36
8.1.130.0030.00317.94
8.1.120.0040.00317.41
8.1.110.0040.00417.52
8.1.100.0000.00717.36
8.1.90.0050.00217.47
8.1.80.0000.00717.50
8.1.70.0030.00317.44
8.1.60.0000.00817.64
8.1.50.0030.00617.49
8.1.40.0030.00617.51
8.1.30.0050.00517.72
8.1.20.0050.00217.71
8.1.10.0000.00817.64
8.1.00.0030.00517.55
8.0.300.0000.00718.77
8.0.290.0000.00816.58
8.0.280.0030.00318.45
8.0.270.0070.00017.32
8.0.260.0030.00317.23
8.0.250.0030.00317.10
8.0.240.0000.00717.09
8.0.230.0070.00016.96
8.0.220.0030.00316.92
8.0.210.0000.00717.02
8.0.200.0000.00816.98
8.0.190.0000.00716.96
8.0.180.0050.00316.95
8.0.170.0000.00817.07
8.0.160.0000.00717.05
8.0.150.0000.01116.93
8.0.140.0030.00317.02
8.0.130.0000.00613.49
8.0.120.0040.00416.90
8.0.110.0000.00716.91
8.0.100.0050.00317.01
8.0.90.0030.00316.89
8.0.80.0110.01116.95
8.0.70.0000.00716.95
8.0.60.0040.00416.91
8.0.50.0040.00416.93
8.0.30.0080.01117.17
8.0.20.0110.01017.40
8.0.10.0000.00717.06
8.0.00.0120.00916.88
7.4.330.0000.00515.15
7.4.320.0030.00316.64
7.4.300.0000.00616.55
7.4.290.0030.00316.54
7.4.280.0000.00716.50
7.4.270.0030.00316.53
7.4.260.0070.00016.63
7.4.250.0050.00216.49
7.4.240.0030.00316.58
7.4.230.0000.00716.40
7.4.220.0030.01416.55
7.4.210.0090.00616.68
7.4.200.0040.00416.69
7.4.160.0030.01216.64
7.4.150.0090.01017.40
7.4.140.0110.00717.86
7.4.130.0110.00616.59
7.4.120.0060.01116.58
7.4.110.0140.00616.73
7.4.100.0070.01016.58
7.4.90.0090.00916.65
7.4.80.0000.01819.39
7.4.70.0110.00616.57
7.4.60.0100.00616.49
7.4.50.0030.00616.64
7.4.40.0100.00716.41
7.4.30.0030.01216.57
7.4.00.0070.01014.93
7.3.330.0050.00313.36
7.3.320.0000.00713.46
7.3.310.0040.00416.43
7.3.300.0060.00016.29
7.3.290.0030.01116.39
7.3.280.0070.01016.46
7.3.270.0070.01017.40
7.3.260.0110.01116.50
7.3.250.0090.00816.58
7.3.240.0070.01016.72
7.3.230.0130.00316.44
7.3.210.0040.01516.40
7.3.200.0100.00619.39
7.3.190.0130.00316.52
7.3.180.0100.00616.61
7.3.170.0090.00616.50
7.3.160.0080.00816.27
7.3.00.0100.00316.37
7.2.330.0090.01016.68
7.2.320.0150.00316.66
7.2.310.0040.01416.42
7.2.300.0130.01016.69
7.2.290.0140.00316.42
7.2.130.0030.00916.91
7.2.120.0040.00716.90
7.2.110.0030.01016.49
7.2.100.0060.00917.02
7.2.90.0030.00916.75
7.2.80.0060.00616.92
7.2.70.0100.00316.98
7.2.60.0100.00416.95
7.2.50.0030.00916.93
7.2.40.0100.00316.79
7.2.30.0070.00716.70
7.2.20.0030.01417.18
7.2.10.0070.01117.01
7.2.00.0050.01018.10
7.1.250.0000.01415.81
7.1.240.0060.00915.78
7.1.230.0060.00315.92
7.1.220.0040.00715.83
7.1.210.0070.00415.94
7.1.200.0050.00815.80
7.1.190.0000.01415.85
7.1.180.0100.00315.82
7.1.170.0060.00615.62
7.1.160.0000.01515.66
7.1.150.0070.00715.95
7.1.140.0060.01015.86
7.1.130.0030.00915.50
7.1.120.0060.01015.81
7.1.110.0060.00315.82
7.1.100.0020.01416.92
7.1.90.0060.00615.92
7.1.80.0060.00615.79
7.1.70.0030.00916.56
7.1.60.0110.00817.62
7.1.50.0080.01016.47
7.1.40.0030.01015.68
7.1.30.0000.00915.78
7.1.20.0030.01015.74
7.1.10.0070.00715.58
7.1.00.0070.04019.13
7.0.330.0000.00815.21
7.0.320.0060.00615.52
7.0.310.0090.00615.35
7.0.300.0100.00315.17
7.0.290.0060.00315.38
7.0.280.0000.01415.51
7.0.270.0090.00315.31
7.0.260.0070.00715.43
7.0.250.0030.00715.42
7.0.240.0100.00315.38
7.0.230.0110.00415.20
7.0.220.0030.00715.33
7.0.210.0030.00615.59
7.0.200.0270.00514.96
7.0.190.0030.00615.21
7.0.180.0030.00715.43
7.0.170.0070.00315.46
7.0.160.0040.01115.44
7.0.150.0040.01215.34
7.0.140.0090.03618.61
7.0.130.0030.00615.32
7.0.120.0040.00815.37
7.0.110.0050.00515.53
7.0.100.0110.00315.34
7.0.90.0000.01015.38
7.0.80.0030.01015.26
7.0.70.0040.00815.44
7.0.60.0100.04117.71
7.0.50.0040.02716.47
7.0.40.0100.04216.86
7.0.30.0170.02916.74
7.0.20.0130.03016.63
7.0.10.0100.02716.90
7.0.00.0070.04816.80
5.6.380.0070.00714.21
5.6.370.0070.00714.38
5.6.360.0140.00014.26
5.6.350.0060.00314.36
5.6.340.0090.00413.89
5.6.330.0140.00014.27
5.6.320.0000.01314.52
5.6.310.0070.01014.50
5.6.300.0000.01014.33
5.6.290.0030.00714.02
5.6.280.0020.04117.73
5.6.270.0000.00814.07
5.6.260.0090.00614.45
5.6.250.0090.00314.38
5.6.240.0100.00713.99
5.6.230.0060.01214.59
5.6.220.0050.00514.04
5.6.210.0030.02517.35
5.6.200.0060.03516.21
5.6.190.0020.03417.48
5.6.180.1910.02717.22
5.6.170.0200.04317.51
5.6.160.0010.02817.48
5.6.150.0080.02116.05
5.6.140.0050.02116.13
5.6.130.0070.03516.18
5.6.120.0120.04217.62
5.6.110.0080.03617.73
5.6.100.0070.04617.66
5.6.90.0120.02617.63
5.6.80.0100.04017.17
5.6.70.1670.03317.23
5.6.60.0110.00414.54
5.6.50.0030.00914.05
5.6.40.0060.00613.98
5.6.30.0070.00714.07
5.6.20.0000.01314.09
5.6.10.0100.00314.04
5.6.00.0030.01314.01
5.5.380.0060.00610.93
5.5.370.0000.01111.43
5.5.360.0100.00011.00
5.5.350.0000.04715.83
5.5.340.0030.04814.41
5.5.330.0000.02515.67
5.5.320.0260.03815.77
5.5.310.0190.03415.74
5.5.300.0050.02814.61
5.5.290.0030.03214.63
5.5.280.0060.03016.02
5.5.270.0040.02315.95
5.5.260.0100.04115.96
5.5.250.0070.03415.72
5.5.240.0070.04015.66
5.5.230.0030.00910.90
5.5.220.0040.00710.84
5.5.210.0080.00011.22
5.5.200.0090.00011.08
5.5.190.0080.00411.15
5.5.180.0040.00711.31
5.5.170.0070.00711.08
5.5.160.0090.00310.84
5.5.150.0060.00611.16
5.5.140.0080.00010.94
5.5.130.0040.00411.20
5.5.120.0040.00811.17
5.5.110.0060.00611.24
5.5.100.0040.00811.19
5.5.90.0060.00010.86
5.5.80.0000.01011.15
5.5.70.0000.01111.07
5.5.60.0060.00311.13
5.5.50.0030.00611.15
5.5.40.0030.00610.93
5.5.30.0030.00911.11
5.5.20.0040.00411.07
5.5.10.0040.00810.67
5.5.00.0070.00311.06
5.4.450.0410.03015.19
5.4.440.0380.03315.16
5.4.430.0420.03615.43
5.4.420.0330.04315.09
5.4.410.0070.03114.94
5.4.400.0160.03314.92
5.4.390.0210.02814.89
5.4.380.0080.02814.91
5.4.370.0020.03614.68
5.4.360.0170.02014.88
5.4.350.0050.02111.59
5.4.340.0040.02411.65
5.4.330.0030.00310.85
5.4.320.0040.02511.79
5.4.310.0080.02011.83
5.4.300.0050.02011.56
5.4.290.0070.02111.70
5.4.280.0030.02111.74
5.4.270.0070.01811.54
5.4.260.0060.02811.78
5.4.250.0050.02211.53
5.4.240.0060.02111.73
5.4.230.0070.03211.77
5.4.220.0070.02311.62
5.4.210.0060.02011.54
5.4.200.0060.02011.80
5.4.190.0050.02111.48
5.4.180.0090.01811.79
5.4.170.0040.02211.72
5.4.160.0050.02311.75
5.4.150.0020.02311.54
5.4.140.0050.02111.38
5.4.130.0050.02111.44
5.4.120.0040.02111.54
5.4.110.0050.02211.54
5.4.100.0040.02111.45
5.4.90.0050.02011.53
5.4.80.0040.02211.50
5.4.70.0050.01911.49
5.4.60.0100.01711.52
5.4.50.0030.02211.48
5.4.40.0070.01911.56
5.4.30.0030.02311.47
5.4.20.0060.01911.44
5.4.10.0040.02211.47
5.4.00.0030.02411.23
5.3.290.0050.02411.65
5.3.280.0050.02411.63
5.3.270.0040.02311.61
5.3.260.0030.02211.71
5.3.250.0040.02211.70
5.3.240.0050.02211.60
5.3.230.0040.02111.60
5.3.220.0040.02511.61
5.3.210.0060.02311.59
5.3.200.0070.01911.59
5.3.190.0100.01811.62
5.3.180.0030.02511.70
5.3.170.0060.02011.69
5.3.160.0020.02811.64
5.3.150.0040.02311.68
5.3.140.0050.02211.62
5.3.130.0050.02311.62
5.3.120.0080.02211.57
5.3.110.0070.02411.62
5.3.100.0090.02211.30
5.3.90.0020.03011.34
5.3.80.0070.02211.29
5.3.70.0050.02111.29
5.3.60.0040.02411.28
5.3.50.0040.02711.27
5.3.40.0050.02511.26
5.3.30.0050.02311.28
5.3.20.0070.01611.12
5.3.10.0030.02211.10
5.3.00.0030.02311.10
5.2.170.0050.0179.85
5.2.160.0040.0189.85
5.2.150.0060.0179.85
5.2.140.0040.0179.85
5.2.130.0020.0199.83
5.2.120.0050.0159.83
5.2.110.0030.0199.83
5.2.100.0030.0219.83
5.2.90.0020.0219.83
5.2.80.0030.0209.83
5.2.70.0030.0199.83
5.2.60.0060.0179.80
5.2.50.0020.0199.79
5.2.40.0060.0169.78
5.2.30.0030.0189.77
5.2.20.0060.0149.76
5.2.10.0050.0209.71
5.2.00.0040.0169.64
5.1.60.0050.0139.28
5.1.50.0040.0169.28
5.1.40.0020.0189.27
5.1.30.0040.0159.45
5.1.20.0030.0209.46
5.1.10.0060.0149.32
5.1.00.0050.0139.32
5.0.50.0060.0128.57
5.0.40.0040.0108.50
5.0.30.0020.0198.40
5.0.20.0040.0108.39
5.0.10.0040.0108.37
5.0.00.0030.0178.37
4.4.90.0030.0087.63
4.4.80.0020.0097.62
4.4.70.0020.0097.62
4.4.60.0010.0127.62
4.4.50.0020.0137.63
4.4.40.0010.0197.60
4.4.30.0030.0127.62
4.4.20.0030.0087.67
4.4.10.0050.0077.67
4.4.00.0030.0167.62
4.3.110.0040.0107.58
4.3.100.0040.0077.58
4.3.90.0030.0097.56
4.3.80.0010.0167.54
4.3.70.0030.0087.56
4.3.60.0040.0087.56
4.3.50.0050.0117.56
4.3.40.0020.0177.51
4.3.30.0030.0086.89
4.3.20.0030.0106.88
4.3.10.0010.0116.86
4.3.00.0050.0148.80

preferences:
36.49 ms | 400 KiB | 5 Q