3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $value = 5; } $x = new Foo(); $closure = function () { return $this->value; }; echo $closure->call($x);

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.0070.01016.50
8.3.50.0120.00621.13
8.3.40.0040.01118.70
8.3.30.0080.00818.72
8.3.20.0040.00420.39
8.3.10.0000.00823.48
8.3.00.0030.00623.51
8.2.180.0140.00325.92
8.2.170.0110.00422.96
8.2.160.0030.01020.39
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0080.00019.82
8.2.120.0050.00226.35
8.2.110.0070.00322.29
8.2.100.0090.00317.78
8.2.90.0030.00519.21
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0060.00318.04
8.2.50.0000.00818.07
8.2.40.0060.00321.98
8.2.30.0000.00819.35
8.2.20.0040.00417.73
8.2.10.0070.00017.93
8.2.00.0000.00718.06
8.1.280.0000.01625.92
8.1.270.0060.00322.19
8.1.260.0050.00328.09
8.1.250.0080.00028.09
8.1.240.0150.00323.86
8.1.230.0110.00022.88
8.1.220.0030.00617.79
8.1.210.0060.00318.77
8.1.200.0050.00517.13
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0050.00318.64
8.1.160.0050.00320.75
8.1.150.0000.00818.80
8.1.140.0000.00919.58
8.1.130.0070.00017.82
8.1.120.0030.00417.46
8.1.110.0000.00717.45
8.1.100.0040.00417.36
8.1.90.0030.00517.36
8.1.80.0000.00717.50
8.1.70.0040.00417.45
8.1.60.0050.00317.61
8.1.50.0060.00317.58
8.1.40.0030.00517.45
8.1.30.0050.00317.70
8.1.20.0080.00017.66
8.1.10.0000.00717.61
8.1.00.0000.00817.51
8.0.300.0000.00918.77
8.0.290.0040.00416.63
8.0.280.0030.00318.30
8.0.270.0020.00517.25
8.0.260.0060.00017.29
8.0.250.0000.00716.96
8.0.240.0040.00417.00
8.0.230.0070.00016.89
8.0.220.0070.00016.86
8.0.210.0050.00316.72
8.0.200.0030.00316.91
8.0.190.0030.00316.91
8.0.180.0000.00716.87
8.0.170.0000.00916.98
8.0.160.0040.00416.81
8.0.150.0080.00016.79
8.0.140.0050.00316.73
8.0.130.0000.00513.31
8.0.120.0040.00416.86
8.0.110.0040.00416.93
8.0.100.0040.00416.76
8.0.90.0040.00416.76
8.0.80.0150.00016.87
8.0.70.0020.00516.86
8.0.60.0040.00416.94
8.0.50.0030.00516.75
8.0.30.0130.00417.19
8.0.20.0090.01017.40
8.0.10.0040.00416.88
8.0.00.0120.00616.76
7.4.330.0060.00016.67
7.4.320.0060.00016.54
7.4.300.0050.00216.51
7.4.290.0000.00616.45
7.4.280.0030.00616.52
7.4.270.0000.00716.48
7.4.260.0090.00016.58
7.4.250.0080.00016.36
7.4.240.0020.00516.55
7.4.230.0000.00716.57
7.4.220.0120.00616.54
7.4.210.0090.00616.58
7.4.200.0000.00716.62
7.4.160.0060.01616.56
7.4.150.0100.00717.40
7.4.140.0070.01117.86
7.4.130.0100.00916.48
7.4.120.0110.00616.48
7.4.110.0060.01016.61
7.4.100.0120.00916.51
7.4.90.0100.01016.30
7.4.80.0060.01219.39
7.4.70.0090.00916.43
7.4.60.0190.00616.39
7.4.50.0060.00616.62
7.4.40.0160.00616.51
7.4.30.0130.01016.57
7.4.00.0070.00915.05
7.3.330.0000.00513.21
7.3.320.0000.00613.02
7.3.310.0020.00516.09
7.3.300.0000.00716.20
7.3.290.0030.00316.18
7.3.280.0090.00616.22
7.3.270.0120.00617.40
7.3.260.0170.00016.55
7.3.250.0080.01016.46
7.3.240.0090.01016.23
7.3.230.0110.00716.48
7.3.210.0080.00916.26
7.3.200.0080.00819.39
7.3.190.0110.00716.37
7.3.180.0090.00616.31
7.3.170.0170.00016.31
7.3.160.0110.00616.30
7.3.120.0070.01116.02
7.3.110.0030.01215.89
7.3.100.0070.00715.87
7.3.90.0060.00815.80
7.3.80.0030.00915.93
7.3.70.0060.00515.97
7.3.60.0080.00515.94
7.3.50.0080.00915.96
7.3.40.0070.00715.85
7.3.30.0060.00616.03
7.3.20.0060.00816.93
7.3.10.0070.00616.85
7.3.00.0090.00516.78
7.2.330.0060.01316.33
7.2.320.0030.01416.84
7.2.310.0160.00616.43
7.2.300.0150.00416.34
7.2.290.0110.00616.83
7.2.250.0030.01615.05
7.2.240.0050.01316.13
7.2.230.0060.00716.04
7.2.220.0080.00516.12
7.2.210.0050.01016.09
7.2.200.0060.00816.05
7.2.190.0030.01016.18
7.2.180.0080.00816.15
7.2.170.0060.00816.19
7.2.160.0060.01217.15
7.2.150.0040.01217.15
7.2.140.0090.00317.15
7.2.130.0040.01217.15
7.2.120.0110.00417.15
7.2.110.0000.01517.15
7.2.100.0040.01117.15
7.2.90.0130.00317.15
7.2.80.0040.00717.15
7.2.70.0100.00317.15
7.2.60.0080.00616.85
7.2.50.0100.00717.15
7.2.40.0030.01317.15
7.2.30.0040.01417.15
7.2.20.0090.00617.15
7.2.10.0060.01217.15
7.2.00.0050.00818.27
7.1.330.0070.00616.42
7.1.320.0020.01116.39
7.1.310.0050.00616.40
7.1.300.0080.00616.42
7.1.290.0020.01016.49
7.1.280.0080.00516.43
7.1.270.0110.00516.50
7.1.260.0070.00716.36
7.1.250.0000.01117.15
7.1.200.0030.01015.62
7.1.100.0030.01218.02
7.1.70.0000.01417.16
7.1.60.0130.01019.30
7.1.50.0060.00616.57
7.1.00.0030.07722.34
7.0.200.0000.01016.64
7.0.60.0200.07721.74
7.0.50.0030.07017.89
7.0.40.0070.08720.21
7.0.30.0270.04720.30
7.0.20.0300.04720.20
7.0.10.0030.05020.30
7.0.00.0070.08320.06
5.6.210.0100.07720.67
5.6.200.0070.08318.28
5.6.190.0000.05020.63
5.6.180.0530.06020.50
5.6.170.0230.05020.51
5.6.160.0100.04020.56
5.6.150.0070.05718.15
5.6.140.0000.06718.28
5.6.130.0070.08018.16
5.6.120.0230.04021.20
5.6.110.0000.04320.98
5.6.100.0030.08320.96
5.6.90.0000.06321.02
5.6.80.0030.05020.41
5.5.350.0230.05320.30
5.5.340.0030.07018.08
5.5.330.0000.04720.43
5.5.320.0500.04320.32
5.5.310.0200.04020.34
5.5.300.0000.05017.92
5.5.290.0030.08318.02
5.5.280.0070.04320.89
5.5.270.0030.08320.73
5.5.260.0100.07720.79
5.5.250.0000.06020.66
5.5.240.0130.03720.07

preferences:
52.02 ms | 401 KiB | 5 Q