3v4l.org

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

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.70.0030.01718.36
8.3.60.0100.01016.88
8.3.50.0100.00821.22
8.3.40.0140.00718.82
8.3.30.0090.00618.55
8.3.20.0110.00420.39
8.3.10.0050.00323.72
8.3.00.0090.00021.96
8.2.190.0180.00018.41
8.2.180.0100.00716.75
8.2.170.0070.01422.96
8.2.160.0130.00720.35
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0000.00820.81
8.2.120.0000.00826.35
8.2.110.0030.00721.05
8.2.100.0110.00018.16
8.2.90.0040.00419.39
8.2.80.0030.00517.97
8.2.70.0030.00617.63
8.2.60.0030.00718.05
8.2.50.0080.00018.07
8.2.40.0050.00322.14
8.2.30.0030.00619.50
8.2.20.0080.00017.87
8.2.10.0040.00418.00
8.2.00.0000.00718.12
8.1.280.0110.00425.92
8.1.270.0080.00622.05
8.1.260.0070.00728.09
8.1.250.0040.00428.09
8.1.240.0040.00422.61
8.1.230.0090.00318.90
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0070.00317.23
8.1.190.0080.00017.23
8.1.180.0040.00818.10
8.1.170.0000.00818.66
8.1.160.0040.00420.77
8.1.150.0000.00720.67
8.1.140.0040.00419.62
8.1.130.0000.00817.62
8.1.120.0000.00717.35
8.1.110.0020.00517.48
8.1.100.0000.00817.47
8.1.90.0040.00417.32
8.1.80.0070.00017.48
8.1.70.0070.00017.45
8.1.60.0000.00817.47
8.1.50.0040.00417.56
8.1.40.0000.00917.58
8.1.30.0000.00817.55
8.1.20.0050.00517.60
8.1.10.0090.00017.49
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.34
8.0.270.0070.00017.15
8.0.260.0000.00717.30
8.0.250.0000.00717.00
8.0.240.0000.00716.92
8.0.230.0060.00016.89
8.0.220.0040.00316.88
8.0.210.0030.00316.79
8.0.200.0030.00317.05
8.0.190.0040.00716.96
8.0.180.0000.00716.93
8.0.170.0020.00517.01
8.0.160.0000.01016.89
8.0.150.0040.00416.95
8.0.140.0040.00416.87
8.0.130.0050.00013.35
8.0.120.0050.00316.91
8.0.110.0040.00416.82
8.0.100.0040.00416.84
8.0.90.0000.00816.98
8.0.80.0110.00416.86
8.0.70.0040.00416.89
8.0.60.0000.00816.97
8.0.50.0050.00216.82
8.0.30.0090.01017.11
8.0.20.0130.00817.40
8.0.10.0000.00716.98
8.0.00.0070.01016.75
7.4.330.0050.00016.72
7.4.320.0030.00316.48
7.4.300.0070.00016.50
7.4.290.0030.00316.56
7.4.280.0070.00016.50
7.4.270.0030.00516.58
7.4.260.0030.00316.44
7.4.250.0070.00016.41
7.4.240.0060.00216.54
7.4.230.0030.00316.26
7.4.220.0070.01616.60
7.4.210.0040.01016.45
7.4.200.0040.00416.29
7.4.160.0080.00816.53
7.4.150.0000.01717.40
7.4.140.0090.01117.86
7.4.130.0070.01116.36
7.4.120.0120.00716.59
7.4.110.0000.01916.35
7.4.100.0140.00416.64
7.4.90.0250.00016.43
7.4.80.0110.00719.39
7.4.70.0070.01016.70
7.4.60.0100.00616.47
7.4.50.0060.00916.60
7.4.40.0060.01216.54
7.4.30.0090.00916.59
7.4.00.0060.00914.77
7.3.330.0030.00313.22
7.3.320.0000.00513.14
7.3.310.0030.00616.21
7.3.300.0030.00316.31
7.3.290.0070.00816.34
7.3.280.0100.00716.36
7.3.270.0080.00917.40
7.3.260.0120.00416.38
7.3.240.0020.01516.56
7.3.230.0120.01216.63
7.3.210.0140.00316.34
7.3.200.0070.01019.39
7.3.190.0070.01016.45
7.3.180.0120.00616.58
7.3.170.0090.00616.50
7.3.160.0170.00316.39
7.2.330.0100.00716.63
7.2.320.0040.01316.43
7.2.310.0030.01316.67
7.2.300.0030.01316.66
7.2.290.0130.00316.48
7.2.00.0040.01119.11
7.1.100.0070.01118.24
7.1.70.0060.00316.81
7.1.60.0100.01319.28
7.1.50.0070.00716.89
7.1.00.0030.07322.51
7.0.200.0100.00016.71
7.0.60.0030.08021.66
7.0.50.0100.05717.94
7.0.40.0030.08720.11
7.0.30.0270.05020.09
7.0.20.0330.03320.20
7.0.10.0070.04020.07
7.0.00.0130.07720.15
5.6.280.0000.06020.93
5.6.210.0130.08020.53
5.6.200.0170.08018.29
5.6.190.0100.07020.61
5.6.180.0400.05320.50
5.6.170.0230.04720.52
5.6.160.0030.06320.50
5.6.150.0100.06318.15
5.6.140.0070.04318.23
5.6.130.0070.04718.16
5.6.120.0100.05721.02
5.6.110.0070.03721.04
5.6.100.0070.08721.07
5.6.90.0070.03720.98
5.6.80.0130.07720.42
5.5.350.4130.04320.53
5.5.340.0070.08018.09
5.5.330.0030.07320.43
5.5.320.0730.06020.30
5.5.310.0130.04320.26
5.5.300.0000.04017.95
5.5.290.0000.04718.03
5.5.280.0070.08020.77
5.5.270.0100.06720.80
5.5.260.0070.05320.89
5.5.250.0130.07020.69
5.5.240.0200.07320.19

preferences:
19.56 ms | 401 KiB | 5 Q