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++) { if ( strstr( $keys[$i], $bad_char) !== false ) { trigger_error( "'$bad_char' in '$keys[$i]" ); }} // Notice: '♥' in 'ABC ♥' in …

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.50
8.3.50.0130.00222.79
8.3.40.0120.00318.76
8.3.30.0100.00319.03
8.3.20.0040.00420.39
8.3.10.0070.00023.61
8.3.00.0040.00419.38
8.2.180.0140.00416.50
8.2.170.0090.00622.96
8.2.160.0120.00920.34
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0000.00820.89
8.2.110.0050.00522.26
8.2.100.0000.01217.84
8.2.90.0040.00419.34
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0040.00418.28
8.2.30.0050.00318.02
8.2.20.0050.00317.64
8.2.10.0000.00718.11
8.2.00.0080.00017.62
8.1.280.0100.00325.92
8.1.270.0130.00722.04
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00723.97
8.1.230.0000.01119.10
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0100.00017.22
8.1.190.0060.00317.10
8.1.180.0000.00818.10
8.1.170.0000.00818.50
8.1.160.0040.00422.08
8.1.150.0000.00818.96
8.1.140.0040.00417.43
8.1.130.0000.00717.74
8.1.120.0000.00717.36
8.1.110.0030.00517.36
8.1.100.0000.00717.41
8.1.90.0070.00017.48
8.1.80.0070.00017.36
8.1.70.0040.00417.45
8.1.60.0030.00517.60
8.1.50.0030.00617.45
8.1.40.0000.00817.52
8.1.30.0040.00417.54
8.1.20.0030.00617.62
8.1.10.0000.00717.60
8.1.00.0040.00417.42
8.0.300.0040.00418.77
8.0.290.0000.01016.75
8.0.280.0070.00018.37
8.0.270.0000.00717.18
8.0.260.0030.00317.18
8.0.250.0070.00017.01
8.0.240.0040.00417.04
8.0.230.0000.00717.02
8.0.220.0030.00317.03
8.0.210.0030.00317.02
8.0.200.0030.00317.05
8.0.190.0040.00417.01
8.0.180.0030.00316.92
8.0.170.0060.00317.05
8.0.160.0030.00316.93
8.0.150.0000.01016.89
8.0.140.0000.00816.92
8.0.130.0040.00413.43
8.0.120.0000.00817.03
8.0.110.0040.00416.97
8.0.100.0040.00416.99
8.0.90.0040.00317.01
8.0.80.0030.01316.88
8.0.70.0050.00316.96
8.0.60.0080.00016.90
8.0.50.0070.00016.82
8.0.30.0060.01517.15
8.0.20.0090.01317.40
8.0.10.0070.00017.07
8.0.00.0130.00416.83
7.4.330.0000.00515.12
7.4.320.0060.00016.61
7.4.300.0030.00316.50
7.4.290.0060.00016.47
7.4.280.0060.00316.51
7.4.270.0000.00816.50
7.4.260.0070.00016.63
7.4.250.0000.00816.49
7.4.240.0000.00716.60
7.4.230.0080.00016.58
7.4.220.0130.00716.46
7.4.210.0120.00816.54
7.4.200.0030.00316.67
7.4.160.0110.00416.43
7.4.150.0060.01617.40
7.4.140.0110.00917.86
7.4.130.0050.01116.53
7.4.120.0080.01016.57
7.4.110.0160.00316.54
7.4.100.0170.00016.39
7.4.90.0090.00916.43
7.4.80.0040.01419.39
7.4.70.0050.01416.56
7.4.60.0070.01016.34
7.4.50.0040.00416.48
7.4.40.0070.01116.41
7.4.30.0130.00316.55
7.4.00.0070.00615.05
7.3.330.0050.00213.27
7.3.320.0030.00313.43
7.3.310.0000.00716.39
7.3.300.0030.00316.33
7.3.290.0130.00316.46
7.3.280.0060.01116.41
7.3.270.0130.00317.40
7.3.260.0100.00716.36
7.3.250.0080.00816.60
7.3.240.0140.00816.44
7.3.230.0100.00616.43
7.3.210.0100.00716.46
7.3.200.0060.01119.39
7.3.190.0110.01116.65
7.3.180.0100.00616.43
7.3.170.0000.01516.34
7.3.160.0100.00616.51
7.3.120.0080.01114.89
7.3.110.0100.00714.75
7.3.100.0050.01214.72
7.3.90.0060.00715.12
7.3.80.0050.01114.90
7.3.70.0080.00814.88
7.3.60.0110.00514.90
7.3.50.0090.00514.73
7.3.40.0110.00214.92
7.3.30.0070.00714.84
7.3.20.0050.01016.77
7.3.10.0080.00616.58
7.3.00.0040.00816.67
7.2.330.0150.00916.70
7.2.320.0070.01116.58
7.2.310.0070.01116.42
7.2.300.0060.01116.73
7.2.290.0060.01216.87
7.2.250.0030.01615.02
7.2.240.0110.00615.20
7.2.230.0050.01115.16
7.2.220.0060.00515.25
7.2.210.0080.00814.87
7.2.200.0040.00914.89
7.2.190.0070.00614.90
7.2.180.0040.01015.13
7.2.170.0050.01014.79
7.2.160.0070.01115.16
7.2.150.0130.00616.90
7.2.140.0060.01017.09
7.2.130.0130.00217.00
7.2.120.0080.00716.94
7.2.110.0070.00516.91
7.2.100.0100.00516.97
7.2.90.0050.01017.02
7.2.80.0050.01017.03
7.2.70.0050.01216.86
7.2.60.0030.01217.01
7.2.50.0050.01116.91
7.2.40.0100.00616.73
7.2.30.0090.00616.94
7.2.20.0030.01016.82
7.2.10.0070.00716.96
7.2.00.0070.00917.78
7.1.330.0030.01215.83
7.1.320.0050.00715.71
7.1.310.0060.00615.95
7.1.300.0030.01415.57
7.1.290.0080.00816.00
7.1.280.0110.00015.64
7.1.270.0050.00815.78
7.1.260.0020.01415.75
7.1.250.0100.00315.78
7.1.100.0040.00718.27
7.1.70.0000.00717.27
7.1.60.0030.02119.40
7.1.50.0060.00617.02
7.1.00.0100.07022.30
7.0.200.0060.00614.84
7.0.140.0030.07721.97
7.0.60.0070.07719.96
7.0.50.0130.07717.86
7.0.40.0100.03720.23
7.0.30.0200.04020.08
7.0.20.0300.04720.31
7.0.10.0100.08320.23
7.0.00.0030.04020.05
5.6.280.0030.07321.12
5.6.210.0070.03720.60
5.6.200.0070.03718.19
5.6.190.0070.08720.61
5.6.180.2100.04720.61
5.6.170.0330.06020.71
5.6.160.0030.04020.46
5.6.150.0100.08018.29
5.6.140.0070.07718.14
5.6.130.0100.07018.15
5.6.120.0070.08320.89
5.6.110.0100.08320.98
5.6.100.0070.07321.11
5.6.90.0170.06321.12
5.6.80.0070.05020.52
5.6.70.0200.04020.38
5.5.350.0330.07020.32
5.5.340.0030.08318.05
5.5.330.0170.06720.43
5.5.320.0230.04720.35
5.5.310.0270.08020.26
5.5.300.0000.06317.92
5.5.290.0100.07717.98
5.5.280.0070.05020.87
5.5.270.0070.06720.86
5.5.260.0030.09020.96
5.5.250.0130.07320.68
5.5.240.0300.06720.37
5.4.450.0100.06019.48
5.4.440.0200.05319.30
5.4.430.0100.05319.51
5.4.420.0130.05319.36
5.4.410.0170.05718.99
5.4.400.0200.04318.80
5.4.390.0130.05018.78
5.4.380.0100.06318.56
5.4.370.0030.04018.70
5.4.360.0100.03718.54
5.4.350.0070.03612.02
5.4.340.0040.04912.01
5.4.320.0070.03612.49
5.4.310.0090.03512.49
5.4.300.0070.03512.50
5.4.290.0080.04312.49
5.4.280.0040.03612.39
5.4.270.0050.03812.39
5.4.260.0040.04212.39
5.4.250.0080.03812.39
5.4.240.0040.04112.39
5.4.230.0040.04012.38
5.4.220.0040.03712.38
5.4.210.0050.03512.38
5.4.200.0050.03812.39
5.4.190.0070.03512.38
5.4.180.0050.03712.38
5.4.170.0070.03512.39
5.4.160.0050.03512.38
5.4.150.0060.03512.38
5.4.140.0040.03812.07
5.4.130.0040.03612.05
5.4.120.0060.03712.02
5.4.110.0060.04012.01
5.4.100.0050.04212.01
5.4.90.0040.03812.01
5.4.80.0050.03812.01
5.4.70.0040.04212.00
5.4.60.0070.03412.01
5.4.50.0100.03112.00
5.4.40.0080.04812.00
5.4.30.0040.03711.99
5.4.20.0060.03511.99
5.4.10.0070.03311.99
5.4.00.0060.03611.48
5.3.290.0070.03912.80
5.3.280.0040.03912.71
5.3.270.0050.04012.72
5.3.260.0050.04012.72
5.3.250.0050.03812.72
5.3.240.0040.03812.72
5.3.230.0070.04012.71
5.3.220.0060.03812.68
5.3.210.0040.04012.68
5.3.200.0040.03712.68
5.3.190.0070.03612.67
5.3.180.0060.03612.67
5.3.170.0030.04012.67
5.3.160.0050.03712.67
5.3.150.0080.03512.67
5.3.140.0070.03512.66
5.3.130.0080.03712.66
5.3.120.0080.03812.66
5.3.110.0060.03812.66
5.3.100.0090.03412.12
5.3.90.0070.04112.09
5.3.80.0050.03912.08
5.3.70.0060.03612.09
5.3.60.0050.03812.07
5.3.50.0050.03712.02
5.3.40.0070.03712.02
5.3.30.0090.03711.98
5.3.20.0020.03811.75
5.3.10.0050.03611.72
5.3.00.0070.03411.71
5.2.170.0040.0309.21
5.2.160.0040.0299.21
5.2.150.0030.0329.21
5.2.140.0080.0279.21
5.2.130.0020.0319.17
5.2.120.0050.0289.17
5.2.110.0070.0279.18
5.2.100.0050.0289.17
5.2.90.0070.0279.18
5.2.80.0040.0319.16
5.2.70.0050.0309.17
5.2.60.0080.0269.12
5.2.50.0050.0299.09
5.2.40.0040.0299.06
5.2.30.0080.0339.04
5.2.20.0090.0369.03
5.2.10.0060.0278.93
5.2.00.0070.0278.80
5.1.60.0030.0258.08
5.1.50.0040.0248.08
5.1.40.0040.0308.06
5.1.30.0040.0258.41
5.1.20.0060.0258.43
5.1.10.0060.0278.16
5.1.00.0060.0238.16
5.0.50.0040.0226.64
5.0.40.0040.0256.49
5.0.30.0020.0326.31
5.0.20.0050.0186.27
5.0.10.0030.0206.25
5.0.00.0030.0316.25
4.4.90.0020.0164.78
4.4.80.0020.0174.75
4.4.70.0030.0174.75
4.4.60.0050.0134.76
4.4.50.0020.0154.77
4.4.40.0020.0254.71
4.4.30.0030.0154.76
4.4.20.0040.0144.85
4.4.10.0040.0204.85
4.4.00.0050.0254.76
4.3.110.0030.0154.67
4.3.100.0010.0174.67
4.3.90.0050.0134.63
4.3.80.0050.0234.58
4.3.70.0020.0154.63
4.3.60.0050.0154.63
4.3.50.0040.0144.63
4.3.40.0050.0234.54
4.3.30.0040.0153.30
4.3.20.0020.0213.28
4.3.10.0050.0183.24
4.3.00.0030.0276.82

preferences:
35.41 ms | 401 KiB | 5 Q