3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (preg_split('/,\s*/', '__halt_compiler,abstract,and,array,as,break,callable,case,catch,class,clone,const,continue,declare,default, die,do,echo,else,elseif,empty,enddeclare,endfor,endforeach,endif,endswitch,endwhile,eval,exit,extends,final, finally,for,foreach,function,global,goto,if,implements,include,include_once,instanceof,insteadof,interface, isset,list,namespace,new,or,print,private,protected,public,require,require_once,return,static,switch,throw, trait,try,unset,use,var,while,xor,yield' ) as $keyword) { try { printf("%20s: ", $keyword); eval("echo $keyword::class;"); } catch (Throwable $t) { echo $t->getMessage(), "\n"; } }

Abusive script

This script was stopped while abusing our resources

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.110.0070.01020.94
8.3.100.0100.00017.04
8.3.90.0040.01226.77
8.3.80.0060.00616.88
8.3.70.0130.00616.75
8.3.60.0150.00018.81
8.3.50.0110.00818.08
8.3.40.0130.00319.13
8.3.30.0070.00719.08
8.3.20.0090.00021.85
8.3.10.0060.00320.90
8.3.00.0060.00318.00
8.2.230.0040.00422.58
8.2.220.0150.00624.06
8.2.210.0090.00926.77
8.2.200.0050.00518.66
8.2.190.0110.00716.88
8.2.180.0090.00925.92
8.2.170.0090.00619.22
8.2.160.0140.00422.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00417.91
8.2.120.0050.00326.35
8.2.110.0070.00321.18
8.2.100.0130.00018.16
8.2.90.0000.00918.00
8.2.80.0060.00318.03
8.2.70.0000.00817.93
8.2.60.0000.00818.09
8.2.50.0030.00518.10
8.2.40.0060.00321.02
8.2.30.0040.00419.36
8.2.20.0000.00818.13
8.2.10.0030.00619.16
8.2.00.0050.00318.07
8.1.290.0050.00530.84
8.1.280.0090.00625.92
8.1.270.0000.00820.33
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0060.00323.79
8.1.230.0070.00420.88
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0040.00717.48
8.1.190.0030.00517.48
8.1.180.0030.00618.10
8.1.170.0080.00018.83
8.1.160.0040.00419.00
8.1.150.0060.00318.93
8.1.140.0080.00018.90
8.1.130.0000.00721.87
8.1.120.0040.00417.54
8.1.110.0040.00417.68
8.1.100.0000.00717.56
8.1.90.0040.00417.61
8.1.80.0000.00817.54
8.1.70.0000.00717.66
8.1.60.0000.00917.76
8.1.50.0030.00617.73
8.1.40.0050.00517.59
8.1.30.0080.00017.65
8.1.20.0000.00817.75
8.1.10.0040.00417.75
8.1.00.0040.00417.74
8.0.300.0040.00420.16
8.0.290.0080.00017.00
8.0.280.0000.00718.39
8.0.270.0030.00617.06
8.0.260.0000.00718.42
8.0.250.0000.00717.14
8.0.240.0070.00017.20
8.0.230.0040.00417.20
8.0.220.0040.00417.08
8.0.210.0080.00017.01
8.0.200.0000.00817.05
8.0.190.0080.00017.24
8.0.180.0080.00017.18
8.0.170.0060.00317.12
8.0.160.0000.00917.07
8.0.150.0040.00416.96
8.0.140.0000.00717.09
8.0.130.0000.00613.56
8.0.120.0040.00417.11
8.0.110.0040.00417.10
8.0.100.0040.00417.07
8.0.90.0040.00416.95
8.0.80.0120.00917.16
8.0.70.0040.00416.95
8.0.60.0040.00417.00
8.0.50.0050.00317.04
8.0.30.0060.01617.21
8.0.20.0200.00817.31
8.0.10.0040.00417.23
8.0.00.0130.01117.21
7.4.330.0030.00315.55
7.4.320.0070.00016.88
7.4.300.0030.00316.85
7.4.290.0040.00416.74
7.4.280.0040.00416.72
7.4.270.0000.00716.88
7.4.260.0030.00516.78
7.4.250.0070.00016.71
7.4.240.0050.00316.79
7.4.230.0030.00516.54
7.4.220.0040.00416.62
7.4.210.0110.00816.81
7.4.200.0000.00816.73
7.4.160.0080.01116.81
7.4.140.0030.01717.86
7.4.130.0100.01016.71
7.4.120.0170.00916.55
7.4.110.0140.00716.67
7.4.100.0040.01916.92
7.4.90.0090.00916.75
7.4.80.0090.00919.39
7.4.70.0080.01116.85
7.4.60.0140.00616.64
7.4.50.0090.00916.72
7.4.40.0110.00716.59
7.4.00.0120.00615.28
7.3.330.0030.00313.28
7.3.320.0060.00013.32
7.3.310.0030.00316.50
7.3.300.0000.00716.53
7.3.290.0050.00316.47
7.3.280.0080.00816.44
7.3.260.0130.00616.59
7.3.240.0090.01116.76
7.3.230.0080.01216.70
7.3.210.0150.00416.49
7.3.200.0090.00916.66
7.3.190.0040.01416.70
7.3.180.0080.01516.72
7.3.170.0120.00616.56
7.3.160.0100.00716.50
7.3.10.0550.00514.95
7.3.00.0470.00914.88
7.2.330.0140.00416.82
7.2.320.0110.00816.71
7.2.310.0130.00416.87
7.2.300.0090.00916.88
7.2.290.0160.00416.73
7.2.130.0500.01615.21
7.2.120.0450.01115.11
7.2.110.0630.00714.88
7.2.100.1300.01014.92
7.2.90.0540.01015.05
7.2.80.0570.01015.07
7.2.70.0620.01315.22
7.2.60.0520.00714.87
7.2.50.0650.00314.99
7.2.40.0500.01314.96
7.2.30.0740.00415.23
7.2.20.0620.00614.93
7.2.10.0550.00314.84
7.2.00.0510.00315.32
7.1.250.0470.00614.21

preferences:
28.11 ms | 403 KiB | 5 Q