3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myClass = [ 'attribute' => 0, 'method' => [ 'type' => 'static', 'accessibility' => 'public', 'code' => function () { echo($myClass['attribute']); } ] ]; function foo() { $bar = 'foo'; $baz = function () { echo($bar); }; $baz(); } $foo();

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.0110.00716.75
8.3.50.0110.00821.14
8.3.40.0070.01418.92
8.3.30.0080.00618.44
8.3.20.0050.00320.34
8.3.10.0080.00023.53
8.3.00.0040.00421.73
8.2.180.0070.01016.75
8.2.170.0140.00722.96
8.2.160.0170.00320.39
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00421.07
8.2.120.0060.00326.35
8.2.110.0060.00320.27
8.2.100.0030.01017.84
8.2.90.0000.00719.35
8.2.80.0000.00818.03
8.2.70.0000.00917.63
8.2.60.0040.00717.80
8.2.50.0040.00418.07
8.2.40.0000.00822.25
8.2.30.0000.00819.50
8.2.20.0040.00417.70
8.2.10.0000.00718.23
8.2.00.0090.00018.04
8.1.280.0090.00625.92
8.1.270.0000.00822.21
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00323.86
8.1.230.0040.00823.93
8.1.220.0080.00017.77
8.1.210.0050.00318.77
8.1.200.0090.00017.13
8.1.190.0000.00817.36
8.1.180.0000.01018.10
8.1.170.0080.00018.64
8.1.160.0040.00420.73
8.1.150.0000.00820.64
8.1.140.0040.00419.62
8.1.130.0040.00417.62
8.1.120.0040.00417.43
8.1.110.0060.00317.37
8.1.100.0000.00717.50
8.1.90.0080.00017.34
8.1.80.0040.00417.53
8.1.70.0000.00717.34
8.1.60.0030.00517.56
8.1.50.0040.00417.54
8.1.40.0000.00817.55
8.1.30.0040.00417.73
8.1.20.0030.00517.62
8.1.10.0000.00817.60
8.1.00.0000.00817.43
8.0.300.0030.00518.77
8.0.290.0040.00416.75
8.0.280.0030.00318.39
8.0.270.0000.00817.10
8.0.260.0000.00617.17
8.0.250.0080.00017.00
8.0.240.0070.00016.88
8.0.230.0070.00016.96
8.0.220.0000.00716.95
8.0.210.0000.00716.88
8.0.200.0030.00316.98
8.0.190.0030.00617.04
8.0.180.0070.00016.91
8.0.170.0000.00717.00
8.0.160.0030.00616.99
8.0.150.0000.00716.75
8.0.140.0070.00016.87
8.0.130.0000.00513.39
8.0.120.0030.00516.76
8.0.110.0050.00316.92
8.0.100.0030.00416.84
8.0.90.0070.00016.82
8.0.80.0100.00616.87
8.0.70.0040.00416.95
8.0.60.0000.00716.83
8.0.50.0030.00617.02
8.0.30.0140.00517.14
8.0.20.0120.00917.40
8.0.10.0030.00517.08
8.0.00.0080.01016.77
7.4.330.0000.00616.70
7.4.320.0070.00016.61
7.4.300.0000.00816.52
7.4.290.0070.00016.41
7.4.280.0040.00416.55
7.4.270.0040.00416.53
7.4.260.0070.00016.59
7.4.250.0000.00816.39
7.4.240.0030.00516.56
7.4.230.0070.00016.64
7.4.220.0060.01316.57
7.4.210.0180.00016.53
7.4.200.0030.00616.68
7.4.160.0140.00516.57
7.4.150.0060.01017.40
7.4.140.0110.01217.86
7.4.130.0040.01316.51
7.4.120.0100.00816.58
7.4.110.0070.01116.67
7.4.100.0130.01016.43
7.4.90.0160.01016.48
7.4.80.0120.00619.39
7.4.70.0070.01016.68
7.4.60.0000.01616.52
7.4.50.0030.01316.53
7.4.40.0080.00816.50
7.4.30.0070.01116.71
7.4.00.0030.01215.13
7.3.330.0000.00613.06
7.3.320.0050.00013.30
7.3.310.0040.00416.30
7.3.300.0020.00516.18
7.3.290.0100.00616.29
7.3.280.0080.00716.32
7.3.270.0160.00317.40
7.3.260.0100.00616.40
7.3.240.0100.00716.38
7.3.230.0100.01316.57
7.3.210.0070.01016.63
7.3.200.0100.01019.39
7.3.190.0120.00616.66
7.3.180.0060.01216.35
7.3.170.0060.01116.45
7.3.160.0030.01216.34
7.2.330.0140.00416.67
7.2.320.0100.00716.66
7.2.310.0080.00916.43
7.2.300.0080.01216.62
7.2.290.0130.00316.63
7.2.60.0060.00616.55
7.2.00.0000.01419.15
7.1.200.0000.00715.64
7.1.100.0070.01017.67
7.1.70.0000.00717.19
7.1.60.0140.01119.28
7.1.50.0060.01516.82
7.1.00.0000.08022.41
7.0.200.0000.00916.80
7.0.60.0000.08321.76
7.0.50.0100.05717.87
7.0.40.0000.09020.02
7.0.30.0300.05020.08
7.0.20.0170.04720.07
7.0.10.0000.04720.30
7.0.00.0000.09720.20
5.6.280.0000.05021.07
5.6.210.0130.07320.63
5.6.200.0030.08018.20
5.6.190.0070.07020.63
5.6.180.0470.05720.48
5.6.170.0270.03720.54
5.6.160.0000.04720.51
5.6.150.0100.03718.14
5.6.140.0100.06018.21
5.6.130.0100.08018.23
5.6.120.0030.08721.00
5.6.110.0030.04020.97
5.6.100.0070.08021.00
5.6.90.0030.04021.11
5.6.80.0070.08020.38
5.5.350.4330.03720.41
5.5.340.0130.07317.93
5.5.330.0030.07720.30
5.5.320.0300.05020.39
5.5.310.0230.03320.28
5.5.300.0030.04018.03
5.5.290.0000.05018.04
5.5.280.0030.07720.77
5.5.270.0200.07020.80
5.5.260.0130.05020.77
5.5.250.0130.06720.71
5.5.240.0130.05720.07

preferences:
52.76 ms | 401 KiB | 5 Q