3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { echo "Testing..."; } class foo { var $arr = array("test"); function bar() { $this->arr[0](); } } $foo = new foo; $foo->bar(); function bye(){ echo "bye!"; } class A { static function hello() { echo "Hello World\n"; } } $y[0] = 'hello'; $y[1] = 'bye'; A::$y[0](); $a = new A(); $a->$y[1](); ?>

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.0180.00018.31
8.3.50.0130.00521.20
8.3.40.0140.00018.97
8.3.30.0070.00718.66
8.3.20.0040.00420.30
8.3.10.0040.00421.90
8.3.00.0080.00021.82
8.2.180.0090.00617.00
8.2.170.0070.00722.96
8.2.160.0030.01020.52
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00521.14
8.2.120.0040.00426.35
8.2.110.0110.00620.38
8.2.100.0030.00917.61
8.2.90.0050.00318.16
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0000.00818.03
8.2.50.0030.00518.10
8.2.40.0060.00322.18
8.2.30.0000.00719.44
8.2.20.0000.00717.62
8.2.10.0070.00018.02
8.2.00.0000.00718.05
8.1.280.0060.00925.92
8.1.270.0000.00822.18
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0030.00623.97
8.1.230.0110.00020.98
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0060.00318.71
8.1.160.0040.00420.66
8.1.150.0050.00320.65
8.1.140.0030.00519.43
8.1.130.0030.00317.61
8.1.120.0040.00417.45
8.1.110.0040.00417.38
8.1.100.0000.00817.29
8.1.90.0030.00517.39
8.1.80.0070.00317.29
8.1.70.0040.00417.32
8.1.60.0080.00017.60
8.1.50.0050.00317.43
8.1.40.0080.00017.47
8.1.30.0030.00617.65
8.1.20.0070.00017.61
8.1.10.0050.00317.57
8.1.00.0050.00317.54
8.0.300.0090.00020.02
8.0.290.0080.00016.75
8.0.280.0040.00418.46
8.0.270.0040.00417.32
8.0.260.0080.00317.32
8.0.250.0020.00516.94
8.0.240.0030.00316.97
8.0.230.0000.00816.89
8.0.220.0080.00016.87
8.0.210.0000.00716.89
8.0.200.0030.00516.88
8.0.190.0020.00516.91
8.0.180.0040.00416.82
8.0.170.0030.00516.93
8.0.160.0050.00316.97
8.0.150.0040.00416.82
8.0.140.0000.00716.86
8.0.130.0060.00013.35
8.0.120.0080.00016.76
8.0.110.0030.00516.93
8.0.100.0040.00416.76
8.0.90.0000.00716.86
8.0.80.0040.01116.93
8.0.70.0040.00416.86
8.0.60.0000.00716.94
8.0.50.0030.00516.83
8.0.30.0140.00617.05
8.0.20.0110.00917.43
8.0.10.0040.00416.88
8.0.00.0100.00916.79
7.4.330.0030.00316.77
7.4.320.0060.00016.48
7.4.300.0070.00016.61
7.4.290.0040.00416.65
7.4.280.0000.00716.40
7.4.270.0070.00016.49
7.4.260.0000.00716.62
7.4.250.0040.00416.48
7.4.240.0000.00816.52
7.4.230.0040.00416.68
7.4.220.0120.00816.49
7.4.210.0080.00916.52
7.4.200.0020.00516.64
7.4.160.0130.00716.49
7.4.150.0040.01417.40
7.4.140.0120.01117.86
7.4.130.0120.00816.49
7.4.120.0070.00916.52
7.4.110.0090.00916.59
7.4.100.0150.00616.46
7.4.90.0070.01016.63
7.4.80.0080.01119.39
7.4.70.0030.01916.45
7.4.60.0060.01216.40
7.4.50.0090.00616.56
7.4.40.0040.01316.63
7.4.30.0110.00616.31
7.4.00.0090.00615.15
7.3.330.0000.00613.25
7.3.320.0000.00613.44
7.3.310.0030.00316.28
7.3.300.0000.00716.45
7.3.290.0070.00016.34
7.3.280.0100.00716.38
7.3.270.0100.00717.40
7.3.260.0080.00816.52
7.3.250.0110.01016.54
7.3.240.0090.00716.59
7.3.230.0080.00916.59
7.3.210.0090.00816.34
7.3.200.0130.00319.39
7.3.190.0120.00916.51
7.3.180.0000.01616.34
7.3.170.0080.01416.36
7.3.160.0040.01116.41
7.2.330.0110.00616.71
7.2.320.0090.00916.80
7.2.310.0060.01316.48
7.2.300.0070.01016.70
7.2.290.0140.00416.76
7.2.60.0030.00917.19
7.2.00.0040.01119.21
7.1.200.0030.00415.82
7.1.100.0000.01418.29
7.1.70.0020.00517.29
7.1.60.0040.01419.40
7.1.50.0100.01016.51
7.1.00.0070.07322.37
7.0.200.0300.00314.83
7.0.60.0100.03321.76
7.0.50.0100.03317.86
7.0.40.0130.05320.27
7.0.30.0300.06320.06
7.0.20.0330.06020.10
7.0.10.0070.08720.30
7.0.00.0030.08720.05
5.6.280.0070.05020.93
5.6.210.0030.07720.52
5.6.200.0070.07318.19
5.6.190.0100.07020.77
5.6.180.0230.07320.52
5.6.170.0270.06320.56
5.6.160.0070.08320.49
5.6.150.0070.05018.15
5.6.140.0000.04318.18
5.6.130.0070.03718.27
5.6.120.0170.07721.13
5.6.110.0070.05021.05
5.6.100.0100.08321.13
5.6.90.0100.06721.14
5.6.80.0030.04020.41
5.5.350.0070.07320.44
5.5.340.0030.04317.98
5.5.330.0100.05320.43
5.5.320.0270.04020.33
5.5.310.0200.06020.51
5.5.300.0100.07318.08
5.5.290.0170.07317.98
5.5.280.0070.07720.90
5.5.270.0130.08020.98
5.5.260.0000.05020.73
5.5.250.0070.06320.59
5.5.240.0170.07320.18

preferences:
77.11 ms | 401 KiB | 5 Q