3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Thing { public function stuff() { $lambda = function() { static $y; $y++; }; var_dump(spl_object_hash($lambda)); } } $x = new Thing(); $x->stuff(); $x->stuff();

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.63
8.3.50.0250.01122.04
8.3.40.0060.00918.72
8.3.30.0040.01118.63
8.3.20.0040.00420.33
8.3.10.0040.00423.48
8.3.00.0040.00420.58
8.2.180.0090.00916.59
8.2.170.0130.00922.96
8.2.160.0030.01420.39
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00419.46
8.2.120.0040.00426.35
8.2.110.0070.00420.55
8.2.100.0110.00017.78
8.2.90.0000.00819.20
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0050.00322.15
8.2.30.0000.00720.53
8.2.20.0050.00317.69
8.2.10.0050.00318.09
8.2.00.0050.00317.93
8.1.280.0090.00625.92
8.1.270.0060.00320.36
8.1.260.0000.00828.09
8.1.250.0030.00528.09
8.1.240.0070.00423.52
8.1.230.0070.00320.88
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0050.00317.35
8.1.180.0090.00018.10
8.1.170.0080.00018.59
8.1.160.0040.00420.81
8.1.150.0000.00818.88
8.1.140.0040.00419.59
8.1.130.0030.00317.74
8.1.120.0040.00417.55
8.1.110.0000.00817.50
8.1.100.0070.00317.34
8.1.90.0040.00417.46
8.1.80.0070.00017.50
8.1.70.0000.00717.50
8.1.60.0040.00417.48
8.1.50.0030.00617.48
8.1.40.0030.00517.50
8.1.30.0030.00617.50
8.1.20.0000.00817.54
8.1.10.0040.00417.52
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0000.00816.58
8.0.280.0000.00718.38
8.0.270.0050.00217.07
8.0.260.0040.00417.18
8.0.250.0000.00716.81
8.0.240.0030.00316.76
8.0.230.0000.00716.82
8.0.220.0040.00416.84
8.0.210.0000.00816.73
8.0.200.0070.00316.88
8.0.190.0090.00316.95
8.0.180.0000.00816.81
8.0.170.0000.00816.91
8.0.160.0000.00716.86
8.0.150.0070.00016.86
8.0.140.0040.00416.81
8.0.130.0030.00313.29
8.0.120.0040.00416.89
8.0.110.0050.00316.90
8.0.100.0080.00016.91
8.0.90.0040.00416.82
8.0.80.0060.00916.84
8.0.70.0000.00716.71
8.0.60.0030.00516.92
8.0.50.0000.00716.76
8.0.30.0110.00916.96
8.0.20.0130.00517.42
8.0.10.0000.00816.92
8.0.00.0070.01016.65
7.4.330.0000.00516.82
7.4.320.0000.00716.53
7.4.300.0030.00616.59
7.4.290.0050.00316.58
7.4.280.0030.00616.51
7.4.270.0030.00316.52
7.4.260.0000.00816.48
7.4.250.0000.00716.56
7.4.240.0070.00016.62
7.4.230.0040.00416.69
7.4.220.0070.01316.53
7.4.210.0100.00516.54
7.4.200.0000.00716.58
7.4.160.0030.01216.46
7.4.150.0150.00317.40
7.4.140.0110.01017.86
7.4.130.0170.01316.54
7.4.120.0070.01316.39
7.4.110.0150.00416.42
7.4.100.0060.01216.51
7.4.90.0070.01016.46
7.4.80.0030.01319.39
7.4.70.0090.00916.51
7.4.60.0080.00816.38
7.4.50.0000.01016.56
7.4.40.0070.01016.65
7.4.30.0180.00316.51
7.4.00.0080.00714.64
7.3.330.0020.00213.28
7.3.320.0000.00813.26
7.3.310.0040.00416.32
7.3.300.0030.00316.32
7.3.290.0000.00716.30
7.3.280.0090.00716.26
7.3.270.0140.00317.40
7.3.260.0080.01116.40
7.3.250.0130.00416.46
7.3.240.0150.00916.38
7.3.230.0170.00016.39
7.3.210.0060.01016.17
7.3.200.0110.00816.20
7.3.190.0130.00316.38
7.3.180.0120.00416.63
7.3.170.0160.00616.34
7.3.160.0070.01716.33
7.3.120.0000.01815.09
7.3.110.0040.01214.84
7.3.100.0030.01214.54
7.3.90.0000.01615.10
7.3.80.0030.01014.91
7.3.70.0130.00314.82
7.3.60.0070.00714.94
7.3.50.0090.00014.42
7.3.40.0100.00714.90
7.3.30.0090.00014.47
7.3.20.0080.00516.69
7.3.10.0050.00516.71
7.3.00.0120.00016.41
7.2.330.0100.00716.71
7.2.320.0120.00916.59
7.2.310.0120.00316.71
7.2.300.0060.01216.54
7.2.290.0090.00816.78
7.2.250.0080.00515.09
7.2.240.0000.01515.09
7.2.230.0090.00915.19
7.2.220.0060.01214.94
7.2.210.0080.00814.94
7.2.200.0060.00615.02
7.2.190.0030.01314.95
7.2.180.0030.00814.89
7.2.170.0060.00614.93
7.2.130.0070.00716.81
7.2.120.0040.00416.91
7.2.110.0060.00916.75
7.2.100.0070.01017.01
7.2.90.0000.01116.60
7.2.80.0100.00717.09
7.2.70.0000.01117.06
7.2.60.0070.00516.86
7.2.50.0040.01116.75
7.2.40.0030.01217.00
7.2.30.0090.00316.99
7.2.20.0060.00616.77
7.2.10.0100.00316.77
7.2.00.0070.00618.25
7.1.330.0070.00715.86
7.1.320.0060.00915.69
7.1.310.0030.01315.61
7.1.300.0120.00615.49
7.1.290.0080.00815.74
7.1.280.0100.00315.46
7.1.270.0040.01215.49
7.1.260.0030.01215.58
7.1.250.0040.00815.64
7.1.200.0070.00715.84
7.1.100.0000.01117.80
7.1.70.0030.00316.88
7.1.60.0030.02019.52
7.1.50.0140.00416.98
7.1.00.0000.07722.43
7.0.200.0030.00516.63
7.0.60.0170.07321.78
7.0.50.0070.06317.73
7.0.40.0070.04020.15
7.0.30.0270.07720.12
7.0.20.0300.08020.22
7.0.10.0130.08020.22
7.0.00.0070.04020.16
5.6.280.0030.06020.88
5.6.210.0170.07720.48
5.6.200.0030.08018.18
5.6.190.0000.04320.52
5.6.180.0400.07720.41
5.6.170.0300.05320.44
5.6.160.0070.03720.55
5.6.150.0070.06318.15
5.6.140.0030.03718.24
5.6.130.0070.08018.18
5.6.120.0130.04721.01
5.6.110.0070.05021.15
5.6.100.0100.03721.02
5.6.90.0070.04021.12
5.6.80.0070.06720.41
5.5.350.0270.07720.41
5.5.340.0030.05018.04
5.5.330.0070.04720.43
5.5.320.0170.08320.38
5.5.310.0170.04020.43
5.5.300.0100.05017.97
5.5.290.0070.08017.95
5.5.280.0000.04320.85
5.5.270.0030.09320.77
5.5.260.0000.07020.96
5.5.250.0100.08020.69
5.5.240.0000.08020.13

preferences:
48.51 ms | 401 KiB | 5 Q