3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ const AB♥ = "alphabet"; } $rc = new ReflectionClass("Test"); $t = array_keys( $rc->getConstants())[0]; if ( mb_substr($t,-1,1,"utf-8") == "\xe2\x99\xa5" ) { var_dump($t,mb_substr($t,-1,1,"utf-8"), "\xe2\x99\xa5"); echo "heart: ",json_decode('"' . "\u2665" . '"'); //trigger_error("heart symbol is disallowed",E_USER_ERROR); }

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.0090.00918.70
8.3.30.0040.01118.84
8.3.20.0070.00020.20
8.3.10.0040.00421.77
8.3.00.0040.00417.93
8.2.170.0090.00622.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.48
8.2.110.0000.00922.29
8.2.100.0000.01219.57
8.2.90.0000.00819.32
8.2.80.0060.00318.78
8.2.70.0060.00317.75
8.2.60.0090.00017.91
8.2.50.0070.00418.07
8.2.40.0080.00018.12
8.2.30.0080.00018.12
8.2.20.0000.00817.75
8.2.10.0040.00417.95
8.2.00.0000.00818.07
8.1.270.0070.00722.06
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0110.00020.46
8.1.230.0110.00017.70
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0040.00417.35
8.1.180.0050.00319.19
8.1.170.0000.00818.66
8.1.160.0000.00718.80
8.1.150.0000.00818.93
8.1.140.0040.00617.50
8.1.130.0000.00717.62
8.1.120.0000.00717.50
8.1.110.0000.00717.44
8.1.100.0000.00717.50
8.1.90.0050.00517.47
8.1.80.0000.00717.47
8.1.70.0050.00217.37
8.1.60.0050.00217.64
8.1.50.0040.00417.51
8.1.40.0000.01117.52
8.1.30.0060.00317.73
8.1.20.0040.00417.71
8.1.10.0040.00417.62
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00420.33
8.0.270.0070.00017.38
8.0.260.0030.00317.24
8.0.250.0040.00417.06
8.0.240.0030.00317.04
8.0.230.0070.00016.90
8.0.220.0040.00416.96
8.0.210.0040.00416.88
8.0.200.0000.00716.98
8.0.190.0030.00616.95
8.0.180.0070.00016.90
8.0.170.0040.00416.91
8.0.160.0040.00416.91
8.0.150.0030.00316.80
8.0.140.0030.00516.74
8.0.130.0000.00513.27
8.0.120.0070.00016.89
8.0.110.0000.00717.02
8.0.100.0000.00716.97
8.0.90.0030.00316.91
8.0.80.0100.00316.95
8.0.70.0040.00417.00
8.0.60.0000.00716.85
8.0.50.0050.00316.82
8.0.30.0100.00817.12
8.0.20.0100.01117.40
8.0.10.0050.00316.95
8.0.00.0130.00616.83
7.4.330.0050.00015.20
7.4.320.0000.00716.50
7.4.300.0000.00716.62
7.4.290.0030.00716.56
7.4.280.0100.00016.51
7.4.270.0040.00416.53
7.4.260.0050.00216.61
7.4.250.0030.00516.48
7.4.240.0050.00216.58
7.4.230.0030.00316.61
7.4.220.0030.01416.45
7.4.210.0070.00716.59
7.4.200.0000.00716.42
7.4.160.0060.00916.53
7.4.150.0100.00717.40
7.4.140.0110.01117.86
7.4.130.0110.00716.61
7.4.120.0100.00716.46
7.4.110.0120.00616.59
7.4.100.0100.01316.45
7.4.90.0100.00716.51
7.4.80.0060.01619.39
7.4.70.0150.00416.44
7.4.60.0060.01016.46
7.4.50.0030.00516.55
7.4.40.0140.00716.70
7.4.30.0070.01016.43
7.4.00.0060.00915.02
7.3.330.0030.00313.14
7.3.320.0020.00213.09
7.3.310.0040.00416.17
7.3.300.0030.00316.24
7.3.290.0090.00616.32
7.3.280.0100.01016.27
7.3.270.0100.00717.40
7.3.260.0150.00316.34
7.3.250.0090.00816.44
7.3.240.0100.00616.59
7.3.230.0090.00916.39
7.3.210.0070.01116.50
7.3.200.0120.00616.36
7.3.190.0090.00616.26
7.3.180.0000.01716.18
7.3.170.0110.00616.40
7.3.160.0060.00916.16
7.3.10.0060.00616.28
7.3.00.0070.00716.50
7.2.330.0070.01116.73
7.2.320.0060.01716.66
7.2.310.0100.00716.57
7.2.300.0050.01116.41
7.2.290.0040.01916.42
7.2.130.0060.00616.52
7.2.120.0080.00316.52
7.2.110.0210.00516.50
7.2.100.0080.00616.82
7.2.90.0110.00416.83
7.2.80.0040.00716.46
7.2.70.0080.00316.95
7.2.60.0160.00316.49
7.2.50.0030.01216.67
7.2.40.0040.01116.43
7.2.30.0000.01216.85
7.2.20.0090.00316.41
7.2.10.0030.00716.66
7.2.00.0030.01016.71
7.1.250.0040.00715.70
7.1.200.0200.00815.55
7.1.100.0030.01018.14
7.1.70.0050.00517.24
7.1.60.0070.01719.19
7.1.50.0030.01716.97
7.1.00.0030.07722.36
7.0.200.0000.00916.57
7.0.60.0300.06719.93
7.0.50.0070.05017.86
7.0.40.0070.04020.11
7.0.30.0270.08320.20
7.0.20.0170.08720.08
7.0.10.0130.07320.23
7.0.00.0100.03720.24
5.6.280.0070.06721.06
5.6.210.0070.08320.71
5.6.200.0170.07318.18
5.6.190.0070.04720.63
5.6.180.0030.04020.63
5.6.170.0230.05020.54
5.6.160.0000.04720.50
5.6.150.0100.07018.19
5.6.140.0030.05718.29
5.6.130.0100.05318.18
5.6.120.0070.05721.00
5.6.110.0100.06020.96
5.6.100.0030.07321.10
5.6.90.0130.03721.13
5.6.80.0100.05320.41
5.5.350.0330.07320.53
5.5.340.0130.07017.92
5.5.330.0070.04020.27
5.5.320.0130.07320.61
5.5.310.0330.07720.37
5.5.300.0100.03317.94
5.5.290.0100.07717.97
5.5.280.0100.08320.65
5.5.270.0030.09020.75
5.5.260.0030.04320.95
5.5.250.0070.04020.70
5.5.240.0000.08720.18
5.4.450.0170.05319.61
5.4.440.0430.05319.55
5.4.430.0770.05019.60
5.4.420.0770.05319.47
5.4.410.0600.06319.35
5.4.400.0570.06318.89
5.4.390.0670.05319.12
5.4.380.0670.06319.28
5.4.370.0530.05319.25
5.4.360.0270.06319.06
5.4.350.0200.04319.02
5.4.340.0100.06019.16
5.4.320.0570.06319.15
5.4.310.0530.05719.14
5.4.300.0500.05719.14
5.4.290.0330.06019.25
5.4.280.0170.05019.12
5.4.270.0230.04319.28
5.4.260.0770.05719.01
5.4.250.0630.07319.27
5.4.240.0300.06319.14
5.4.230.0200.04719.14
5.4.220.0070.06019.00
5.4.210.0400.06018.97
5.4.200.0630.08019.22
5.4.190.0600.05018.85
5.4.180.0630.05318.86
5.4.170.0670.05319.21
5.4.160.0730.06718.99
5.4.150.0830.06719.28
5.4.140.0730.08316.54
5.4.130.0730.05316.47
5.4.120.0670.05716.41
5.4.110.0530.05716.52
5.4.100.0630.07716.61
5.4.90.0670.05316.42
5.4.80.0830.05316.17
5.4.70.0200.04016.18
5.4.60.0330.06316.34
5.4.50.0300.05716.52
5.4.40.0270.07716.42
5.4.30.0270.06716.48
5.4.20.0300.03716.33
5.4.10.0270.07016.33

preferences:
53.99 ms | 400 KiB | 5 Q