3v4l.org

run code in 300+ PHP versions simultaneously
<?php class bla { static function bar(){ static $flag = 1; $flag++; if ($flag == 2 ) { return 'blee'; } if ($flag == 3){ return new blee; } } } class blee { static $baz = "\nOh, baz!"; } /**********************************/ $foo = "bla"; echo $foo::bar()::$baz; $foo = new bla; echo $foo::bar()::$baz;

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.0070.00716.63
8.3.50.0180.00521.09
8.3.40.0070.00718.67
8.3.30.0120.00918.54
8.3.20.0040.00420.33
8.3.10.0050.00323.63
8.3.00.0040.00421.77
8.2.180.0070.00716.38
8.2.170.0070.01522.96
8.2.160.0100.00320.34
8.2.150.0140.00324.18
8.2.140.0050.00224.66
8.2.130.0060.00321.04
8.2.120.0070.00026.35
8.2.110.0030.00621.92
8.2.100.0130.00017.85
8.2.90.0000.01018.22
8.2.80.0030.00617.97
8.2.70.0030.00717.38
8.2.60.0080.00017.68
8.2.50.0040.00418.09
8.2.40.0040.00820.43
8.2.30.0040.00419.43
8.2.20.0030.00617.80
8.2.10.0000.00818.03
8.2.00.0040.00417.99
8.1.280.0070.01525.92
8.1.270.0060.00322.14
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0080.00322.23
8.1.230.0080.00420.95
8.1.220.0030.00717.74
8.1.210.0000.00818.77
8.1.200.0090.00317.47
8.1.190.0000.00817.25
8.1.180.0080.00018.10
8.1.170.0000.00918.51
8.1.160.0040.00420.77
8.1.150.0030.00720.70
8.1.140.0040.00419.51
8.1.130.0000.00717.75
8.1.120.0000.00717.37
8.1.110.0000.00717.42
8.1.100.0040.00417.48
8.1.90.0000.00717.42
8.1.80.0040.00417.52
8.1.70.0030.00317.48
8.1.60.0080.00017.49
8.1.50.0030.00517.54
8.1.40.0030.00517.52
8.1.30.0060.00317.57
8.1.20.0000.00717.55
8.1.10.0040.00417.55
8.1.00.0060.00317.47
8.0.300.0000.00720.12
8.0.290.0000.00716.63
8.0.280.0000.00718.50
8.0.270.0000.00817.26
8.0.260.0000.00617.16
8.0.250.0040.00416.89
8.0.240.0000.00716.83
8.0.230.0000.00716.85
8.0.220.0080.00016.89
8.0.210.0030.00516.95
8.0.200.0000.00616.94
8.0.190.0060.00316.98
8.0.180.0000.00716.80
8.0.170.0050.00216.96
8.0.160.0000.00816.86
8.0.150.0030.00416.87
8.0.140.0040.00416.84
8.0.130.0030.00313.33
8.0.120.0040.00416.74
8.0.110.0040.00416.85
8.0.100.0040.00416.84
8.0.90.0000.00716.94
8.0.80.0060.01116.86
8.0.70.0040.00416.82
8.0.60.0000.00716.89
8.0.50.0040.00416.76
8.0.30.0090.00616.97
8.0.20.0090.00917.40
8.0.10.0000.00716.91
8.0.00.0080.01016.72
7.4.330.0050.00016.82
7.4.320.0060.00016.41
7.4.300.0040.00416.51
7.4.290.0000.00616.43
7.4.280.0000.00716.52
7.4.270.0030.00316.41
7.4.260.0060.00316.58
7.4.250.0000.00816.56
7.4.240.0070.00016.59
7.4.230.0070.00016.70
7.4.220.0130.00316.55
7.4.210.0080.00716.51
7.4.200.0030.00316.41
7.4.160.0040.01116.46
7.4.150.0060.01217.40
7.4.140.0130.01117.86
7.4.130.0070.01016.59
7.4.120.0090.00916.60
7.4.110.0090.00916.55
7.4.100.0130.00316.41
7.4.90.0060.01216.37
7.4.80.0060.01119.39
7.4.70.0090.01216.52
7.4.60.0160.00616.37
7.4.50.0060.00616.57
7.4.40.0080.00816.57
7.4.30.0130.01016.52
7.4.00.0030.01314.99
7.3.330.0000.00513.37
7.3.320.0060.00013.33
7.3.310.0000.00716.41
7.3.300.0070.00016.38
7.3.290.0000.00716.25
7.3.280.0110.00616.33
7.3.270.0040.01317.40
7.3.260.0100.01116.48
7.3.250.0130.00716.53
7.3.240.0080.00816.38
7.3.230.0140.00316.39
7.3.210.0030.01616.52
7.3.200.0150.00019.39
7.3.190.0090.01216.53
7.3.180.0060.01216.42
7.3.170.0180.00416.39
7.3.160.0100.00616.57
7.3.10.0060.00616.76
7.3.00.0090.00016.56
7.2.330.0120.00916.80
7.2.320.0060.01216.45
7.2.310.0100.00716.64
7.2.300.0060.01016.79
7.2.290.0100.00616.78
7.2.130.0070.00316.98
7.2.120.0060.00316.59
7.2.110.0060.00316.83
7.2.100.0000.01016.89
7.2.90.0090.00316.89
7.2.80.0070.00316.98
7.2.70.0090.00317.03
7.2.60.0050.00716.87
7.2.50.0030.01316.95
7.2.40.0030.00917.01
7.2.30.0060.00316.77
7.2.20.0040.00716.74
7.2.10.0060.00316.98
7.2.00.0050.00918.10
7.1.250.0030.00915.58
7.1.200.0120.00315.70
7.1.100.0030.00817.98
7.1.70.0000.00717.07
7.1.60.0060.01919.40
7.1.50.0080.00316.82
7.1.00.0100.07022.44
7.0.200.0040.00416.57
7.0.60.0070.06321.87
7.0.50.0100.05317.84
7.0.40.0000.08019.98
7.0.30.0300.06020.33
7.0.20.0300.08020.23
7.0.10.0030.04720.23
7.0.00.0070.08720.33
5.6.280.0030.07020.93
5.6.210.0130.08020.61
5.6.200.0130.08018.18
5.6.190.0000.04720.41
5.6.180.0370.07320.55
5.6.170.0270.07720.71
5.6.160.0070.07320.52
5.6.150.0070.04318.27
5.6.140.0100.06318.28
5.6.130.0100.08018.25
5.6.120.0030.04320.97
5.6.110.0170.04320.98
5.6.100.0100.05721.00
5.6.90.0070.08320.88
5.6.80.0070.03720.33
5.5.350.3930.04720.47
5.5.340.0030.06017.99
5.5.330.0030.04720.44
5.5.320.0530.05320.20
5.5.310.0270.05020.56
5.5.300.0100.05018.05
5.5.290.0100.07717.97
5.5.280.0070.04020.80
5.5.270.0100.08320.89
5.5.260.0070.07320.77
5.5.250.0100.06720.58
5.5.240.0070.08020.16

preferences:
51.87 ms | 401 KiB | 5 Q