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::$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.0160.00318.27
8.3.50.0070.00716.47
8.3.40.0070.00718.97
8.3.30.0180.00318.89
8.3.20.0050.00320.35
8.3.10.0080.00021.85
8.3.00.0080.00021.96
8.2.180.0070.00716.50
8.2.170.0090.00622.96
8.2.160.0100.00320.45
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0050.00321.04
8.2.120.0080.00026.35
8.2.110.0000.01019.45
8.2.100.0000.01217.72
8.2.90.0050.00319.21
8.2.80.0030.00617.97
8.2.70.0000.00917.63
8.2.60.0060.00318.05
8.2.50.0030.00618.10
8.2.40.0030.00522.15
8.2.30.0070.00019.43
8.2.20.0040.00417.77
8.2.10.0080.00017.94
8.2.00.0030.00617.96
8.1.280.0100.01025.92
8.1.270.0080.00022.24
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0030.00722.14
8.1.230.0080.00417.77
8.1.220.0040.00417.78
8.1.210.0030.00518.77
8.1.200.0070.00317.35
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0030.00618.52
8.1.160.0040.00420.61
8.1.150.0030.00620.61
8.1.140.0000.00819.43
8.1.130.0040.00417.64
8.1.120.0030.00417.36
8.1.110.0000.00717.40
8.1.100.0040.00417.36
8.1.90.0000.00817.43
8.1.80.0040.00417.46
8.1.70.0070.00017.30
8.1.60.0080.00017.53
8.1.50.0040.00417.48
8.1.40.0040.00417.52
8.1.30.0050.00317.63
8.1.20.0030.00517.54
8.1.10.0020.00517.48
8.1.00.0030.00617.48
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.47
8.0.270.0000.00717.26
8.0.260.0040.00417.25
8.0.250.0000.00717.03
8.0.240.0000.00717.00
8.0.230.0070.00016.87
8.0.220.0030.00316.82
8.0.210.0030.00316.86
8.0.200.0000.01017.00
8.0.190.0040.00416.79
8.0.180.0000.00816.80
8.0.170.0000.00716.82
8.0.160.0000.00816.95
8.0.150.0030.00416.81
8.0.140.0000.00716.75
8.0.130.0060.00013.26
8.0.120.0000.00816.91
8.0.110.0040.00416.73
8.0.100.0040.00416.94
8.0.90.0070.00016.86
8.0.80.0000.01516.87
8.0.70.0040.00416.76
8.0.60.0040.00416.96
8.0.50.0000.00716.78
8.0.30.0080.01017.29
8.0.20.0120.00717.40
8.0.10.0080.00016.93
8.0.00.0090.01016.83
7.4.330.0000.00516.84
7.4.320.0060.00016.43
7.4.300.0040.00416.52
7.4.290.0030.00316.63
7.4.280.0000.00716.58
7.4.270.0030.00316.52
7.4.260.0030.00316.60
7.4.250.0050.00316.49
7.4.240.0030.00516.54
7.4.230.0030.00316.51
7.4.220.0060.01316.56
7.4.210.0090.00516.61
7.4.200.0030.00316.61
7.4.160.0100.00616.56
7.4.150.0110.00817.40
7.4.140.0090.01217.86
7.4.130.0110.00816.67
7.4.120.0040.01616.59
7.4.110.0140.00316.51
7.4.100.0090.00916.30
7.4.90.0120.00616.49
7.4.80.0120.00419.39
7.4.70.0130.01016.50
7.4.60.0090.00916.52
7.4.50.0030.01316.59
7.4.40.0090.01016.43
7.4.30.0040.01416.42
7.4.00.0100.00715.02
7.3.330.0000.00513.45
7.3.320.0030.00313.19
7.3.310.0000.00716.33
7.3.300.0000.00616.45
7.3.290.0040.00416.29
7.3.280.0080.01016.40
7.3.270.0120.00617.40
7.3.260.0120.00616.50
7.3.250.0100.01116.56
7.3.240.0120.00616.45
7.3.230.0120.00616.39
7.3.210.0140.00316.61
7.3.200.0090.00919.39
7.3.190.0130.00316.50
7.3.180.0070.01116.69
7.3.170.0110.01216.33
7.3.160.0100.00616.41
7.3.120.0110.00714.73
7.3.110.0130.00314.78
7.3.100.0000.01715.15
7.3.90.0060.00914.51
7.3.80.0030.00614.87
7.3.70.0100.00314.95
7.3.60.0030.01014.77
7.3.50.0090.00314.80
7.3.40.0000.01514.81
7.3.30.0120.00314.88
7.3.20.0030.01016.73
7.3.10.0060.01016.61
7.3.00.0090.00616.51
7.2.330.0090.00916.84
7.2.320.0070.01016.33
7.2.310.0100.01316.34
7.2.300.0140.00316.65
7.2.290.0100.01016.58
7.2.250.0060.01115.32
7.2.240.0000.01814.89
7.2.230.0030.01315.12
7.2.220.0060.00615.07
7.2.210.0110.00415.31
7.2.200.0040.00814.97
7.2.190.0030.01315.13
7.2.180.0060.00615.22
7.2.170.0100.00714.98
7.2.60.0120.00317.04
7.2.00.0100.00618.93
7.1.330.0070.00715.88
7.1.320.0090.00315.73
7.1.310.0070.01015.79
7.1.300.0030.01015.72
7.1.290.0030.00715.68
7.1.280.0000.00915.74
7.1.270.0060.00315.86
7.1.260.0030.00715.57
7.1.200.0060.00615.47
7.1.100.0030.01017.91
7.1.70.0040.00417.31
7.1.60.0040.00719.40
7.1.50.0100.01016.80
7.1.00.0030.07722.33
7.0.200.0310.00714.44
7.0.60.0130.03021.73
7.0.50.0030.04017.86
7.0.40.0070.05320.11
7.0.30.0300.08320.13
7.0.20.0430.07020.15
7.0.10.0170.06320.16
7.0.00.0230.05320.33
5.6.280.0000.03721.14
5.6.210.0200.05020.70
5.6.200.0100.07718.16
5.6.190.0070.06320.48
5.6.180.0330.04720.52
5.6.170.0330.06720.52
5.6.160.0130.06720.54
5.6.150.0100.06318.21
5.6.140.0100.04318.28
5.6.130.0070.04318.15
5.6.120.0100.08021.16
5.6.110.0030.06020.99
5.6.100.0200.05320.98
5.6.90.0130.08021.13
5.6.80.0000.04020.51
5.5.350.0030.07720.34
5.5.340.0030.04017.97
5.5.330.0070.06720.42
5.5.320.0200.05020.51
5.5.310.0230.07720.26
5.5.300.0100.07718.02
5.5.290.0170.06317.97
5.5.280.0100.05020.89
5.5.270.0070.06020.87
5.5.260.0000.04720.77
5.5.250.0100.07320.72
5.5.240.0130.04720.37

preferences:
41.32 ms | 400 KiB | 5 Q