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.0100.01016.75
8.3.50.0100.01021.03
8.3.40.0040.01118.88
8.3.30.0100.01018.89
8.3.20.0040.00420.16
8.3.10.0000.00723.48
8.3.00.0040.00421.90
8.2.180.0040.01116.38
8.2.170.0090.00622.96
8.2.160.0070.00720.39
8.2.150.0060.01224.18
8.2.140.0000.00724.66
8.2.130.0080.00021.04
8.2.120.0050.00326.35
8.2.110.0090.00022.10
8.2.100.0030.00917.72
8.2.90.0040.00417.75
8.2.80.0040.00418.75
8.2.70.0040.00417.49
8.2.60.0030.00617.63
8.2.50.0000.00818.05
8.2.40.0000.00818.16
8.2.30.0080.00018.04
8.2.20.0060.00317.73
8.2.10.0000.00718.00
8.2.00.0000.00717.98
8.1.280.0110.01125.92
8.1.270.0080.00022.03
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0060.00323.87
8.1.230.0080.00319.16
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0050.00517.35
8.1.190.0000.00817.35
8.1.180.0030.00618.10
8.1.170.0000.00818.52
8.1.160.0040.00420.79
8.1.150.0080.00020.59
8.1.140.0030.00619.57
8.1.130.0030.00317.69
8.1.120.0070.00017.44
8.1.110.0040.00417.35
8.1.100.0040.00417.46
8.1.90.0080.00017.49
8.1.80.0000.00817.33
8.1.70.0030.00317.32
8.1.60.0040.00417.63
8.1.50.0030.00617.54
8.1.40.0040.00417.40
8.1.30.0050.00317.57
8.1.20.0000.00817.50
8.1.10.0070.00017.57
8.1.00.0070.00017.48
8.0.300.0070.00018.77
8.0.290.0000.00916.75
8.0.280.0000.00818.32
8.0.270.0080.00017.24
8.0.260.0030.00317.30
8.0.250.0030.00316.89
8.0.240.0000.00716.82
8.0.230.0030.00316.85
8.0.220.0040.00416.88
8.0.210.0080.00016.73
8.0.200.0060.00016.89
8.0.190.0030.00516.95
8.0.180.0050.00316.81
8.0.170.0040.00416.95
8.0.160.0000.00716.95
8.0.150.0070.00016.92
8.0.140.0050.00316.84
8.0.130.0060.00013.25
8.0.120.0050.00216.85
8.0.110.0000.00716.89
8.0.100.0000.00716.96
8.0.90.0050.00216.94
8.0.80.0150.00016.85
8.0.70.0030.00516.81
8.0.60.0070.00016.75
8.0.50.0040.00416.87
8.0.30.0100.00517.26
8.0.20.0090.01017.40
8.0.10.0000.00716.91
8.0.00.0120.00716.78
7.4.330.0050.00016.85
7.4.320.0000.00616.64
7.4.300.0000.00716.53
7.4.290.0000.00816.55
7.4.280.0000.00716.50
7.4.270.0030.00316.44
7.4.260.0050.00216.63
7.4.250.0000.00716.47
7.4.240.0000.00716.59
7.4.230.0000.00716.71
7.4.220.0060.00916.63
7.4.210.0080.00916.63
7.4.200.0000.00716.35
7.4.160.0060.00916.39
7.4.150.0110.00817.40
7.4.140.0130.01017.86
7.4.130.0100.00716.52
7.4.120.0130.00516.39
7.4.110.0060.01216.54
7.4.100.0100.00716.55
7.4.90.0050.01516.60
7.4.80.0100.00719.39
7.4.70.0030.01316.58
7.4.60.0090.00916.57
7.4.50.0060.00916.66
7.4.40.0110.00616.48
7.4.30.0140.00316.54
7.4.00.0000.01214.67
7.3.330.0060.00013.36
7.3.320.0030.00313.23
7.3.310.0070.00016.38
7.3.300.0000.00616.29
7.3.290.0030.00316.23
7.3.280.0090.00916.37
7.3.270.0080.01617.40
7.3.260.0060.01016.62
7.3.250.0130.00716.43
7.3.240.0120.00716.39
7.3.230.0040.01216.55
7.3.210.0100.00716.36
7.3.200.0040.01119.39
7.3.190.0110.00916.33
7.3.180.0070.01416.41
7.3.170.0130.01016.65
7.3.160.0000.01716.63
7.3.10.0030.01016.20
7.3.00.0030.01316.43
7.2.330.0030.01616.58
7.2.320.0030.02116.50
7.2.310.0070.01116.58
7.2.300.0060.01616.83
7.2.290.0070.01016.66
7.2.130.0100.00316.61
7.2.120.0040.00716.40
7.2.110.0140.00816.30
7.2.100.0070.01016.63
7.2.90.0070.00316.81
7.2.80.0090.00516.65
7.2.70.0070.00716.77
7.2.60.0080.00416.62
7.2.50.0070.01416.72
7.2.40.0170.00716.78
7.2.30.0210.01016.51
7.2.20.0130.01316.62
7.2.10.0130.00816.74
7.2.00.0180.00416.73
7.1.250.0060.00615.33
7.1.200.0080.00815.79
7.1.100.0040.00718.20
7.1.70.0000.00816.96
7.1.60.0070.01819.40
7.1.50.0110.00716.89
7.1.00.0100.07022.37
7.0.200.0000.00716.81
7.0.60.0100.06721.75
7.0.50.0000.05717.95
7.0.40.0100.04719.96
7.0.30.0330.06020.15
7.0.20.0230.05720.10
7.0.10.0170.08020.30
7.0.00.0130.08020.25
5.6.280.0030.05721.02
5.6.210.0170.07720.69
5.6.200.0000.04718.19
5.6.190.0100.08320.53
5.6.180.0330.08020.64
5.6.170.0270.08320.54
5.6.160.0070.04320.54
5.6.150.0100.08018.25
5.6.140.0000.06318.15
5.6.130.0100.04018.24
5.6.120.0030.05321.02
5.6.110.0030.07021.00
5.6.100.0070.08320.95
5.6.90.0070.07320.88
5.6.80.0030.04020.36
5.5.350.4300.03320.38
5.5.340.0130.07318.10
5.5.330.0030.07320.30
5.5.320.0330.04720.34
5.5.310.0100.04720.41
5.5.300.0130.07717.95
5.5.290.0000.04717.98
5.5.280.0070.04320.66
5.5.270.0100.06320.73
5.5.260.0130.07320.87
5.5.250.0100.07020.57
5.5.240.0300.06320.37

preferences:
52.81 ms | 401 KiB | 5 Q