3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { protected $bar = 'A bar'; public function getBarDumper() { $that = $this; return function() use ($that) { var_dump($that->bar); }; } } $foo = new foo(); $bar = $foo->getBarDumper(); $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.60.0100.01018.43
8.3.50.0110.00921.99
8.3.40.0090.00618.84
8.3.30.0100.00319.05
8.3.20.0070.00020.34
8.3.10.0090.00023.66
8.3.00.0040.00422.39
8.2.180.0040.01116.38
8.2.170.0070.01422.96
8.2.160.0030.01022.09
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00819.36
8.2.110.0060.00322.25
8.2.100.0090.00317.91
8.2.90.0050.00319.22
8.2.80.0080.00019.66
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0000.00918.16
8.2.30.0070.00318.07
8.2.20.0050.00317.62
8.2.10.0040.00419.52
8.2.00.0000.00717.79
8.1.280.0100.00325.92
8.1.270.0030.00622.11
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00024.01
8.1.230.0000.01119.14
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0040.00417.52
8.1.180.0040.00418.10
8.1.170.0030.00618.55
8.1.160.0000.00721.89
8.1.150.0020.00718.50
8.1.140.0040.00417.37
8.1.130.0030.00317.83
8.1.120.0070.00017.36
8.1.110.0080.00017.36
8.1.100.0040.00417.46
8.1.90.0030.00417.45
8.1.80.0000.00717.46
8.1.70.0040.00417.44
8.1.60.0030.00617.45
8.1.50.0000.00917.45
8.1.40.0030.00617.55
8.1.30.0060.00317.64
8.1.20.0000.00817.71
8.1.10.0000.00717.48
8.1.00.0040.00417.42
8.0.300.0070.00018.77
8.0.290.0050.00217.05
8.0.280.0070.00018.52
8.0.270.0040.00417.16
8.0.260.0030.00316.81
8.0.250.0050.00217.00
8.0.240.0070.00316.98
8.0.230.0030.00316.95
8.0.220.0000.00716.93
8.0.210.0040.00416.86
8.0.200.0080.00016.95
8.0.190.0030.00516.85
8.0.180.0080.00016.97
8.0.170.0070.00016.88
8.0.160.0030.00516.88
8.0.150.0040.00416.86
8.0.140.0040.00416.86
8.0.130.0030.00613.28
8.0.120.0000.00716.83
8.0.110.0000.00816.78
8.0.100.0030.00516.70
8.0.90.0040.00416.86
8.0.80.0060.00916.95
8.0.70.0030.00516.88
8.0.60.0050.00216.77
8.0.50.0020.00517.00
8.0.30.0030.01817.13
8.0.20.0130.01017.40
8.0.10.0050.00316.97
8.0.00.0120.00716.73
7.4.330.0020.00215.05
7.4.320.0030.00316.50
7.4.300.0030.00316.52
7.4.290.0000.00716.60
7.4.280.0050.00516.64
7.4.270.0070.00016.59
7.4.260.0000.00716.47
7.4.250.0030.00616.39
7.4.240.0050.00216.54
7.4.230.0040.00416.34
7.4.220.0200.00616.61
7.4.210.0060.00916.53
7.4.200.0000.00716.34
7.4.190.0040.00416.55
7.4.160.0150.00616.57
7.4.150.0090.00917.40
7.4.140.0190.00617.86
7.4.130.0150.00216.52
7.4.120.0080.01016.42
7.4.110.0170.00016.40
7.4.100.0090.00916.52
7.4.90.0110.00816.55
7.4.80.0060.01216.37
7.4.70.0110.00516.44
7.4.60.0090.01316.50
7.4.50.0000.00716.19
7.4.40.0080.00822.77
7.4.30.0110.00516.55
7.4.00.0070.00815.12
7.3.330.0030.00313.16
7.3.320.0050.00013.25
7.3.310.0000.00716.20
7.3.300.0030.00316.39
7.3.290.0070.01116.24
7.3.280.0080.01016.31
7.3.270.0090.00917.40
7.3.260.0160.00516.54
7.3.250.0120.00816.47
7.3.240.0070.01416.20
7.3.230.0120.00616.39
7.3.210.0100.00616.55
7.3.200.0140.00619.39
7.3.190.0110.00616.55
7.3.180.0120.00916.30
7.3.170.0110.00416.38
7.3.160.0080.00816.56
7.3.120.0040.01414.81
7.3.110.0060.01214.90
7.3.100.0120.00314.74
7.3.90.0080.00614.73
7.3.80.0090.00314.69
7.3.70.0070.00314.61
7.3.60.0040.01014.80
7.3.50.0080.00414.73
7.3.40.0070.00714.91
7.3.30.0000.01014.90
7.3.20.0040.01116.66
7.3.10.0060.00616.75
7.3.00.0070.00716.56
7.2.330.0090.00916.55
7.2.320.0070.01416.49
7.2.310.0110.01116.50
7.2.300.0070.01416.52
7.2.290.0030.01316.61
7.2.250.0110.00415.01
7.2.240.0100.01014.94
7.2.230.0080.00614.89
7.2.220.0140.00015.27
7.2.210.0030.01315.11
7.2.200.0090.00614.86
7.2.190.0040.01115.09
7.2.180.0120.00314.88
7.2.170.0030.01214.95
7.2.00.0000.01319.41
7.1.330.0110.00315.77
7.1.320.0100.00015.71
7.1.310.0040.00415.89
7.1.300.0030.01015.48
7.1.290.0000.01215.91
7.1.280.0070.01015.97
7.1.270.0040.01115.76
7.1.260.0000.00915.60
7.1.100.0000.01617.71
7.1.70.0050.00217.19
7.1.60.0140.01119.24
7.1.50.0030.00816.85
7.1.00.0070.07022.45
7.0.200.0100.01016.49
7.0.140.0100.06322.21
7.0.100.0130.07321.84
7.0.90.0130.07721.83
7.0.80.0070.04321.70
7.0.70.0100.07321.84
7.0.60.0130.07721.69
7.0.50.0070.09722.06
7.0.40.0130.06020.13
7.0.30.0030.09320.04
7.0.20.0070.05020.00
7.0.10.0030.07720.03
7.0.00.0070.08320.13
5.6.280.0030.07320.82
5.6.250.0200.06720.79
5.6.240.0030.08720.50
5.6.230.0000.05020.69
5.6.220.0200.07020.59
5.6.210.0000.09020.68
5.6.200.0100.08721.05
5.6.190.0000.04720.96
5.6.180.0030.06321.05
5.6.170.0070.08321.09
5.6.160.0000.08321.07
5.6.150.0130.07321.08
5.6.140.0000.08320.95
5.6.130.0100.07721.11
5.6.120.0130.07321.17
5.6.110.0070.08321.11
5.6.100.0030.09021.08
5.6.90.0100.08721.10
5.6.80.0000.05320.56
5.6.70.0030.04020.35
5.6.60.0130.06720.55
5.6.50.0070.07320.50
5.6.40.0030.06720.32
5.6.30.0070.08020.30
5.6.20.0070.08020.30
5.6.10.0000.07720.39
5.6.00.0070.07720.29
5.5.380.0230.05720.45
5.5.370.0130.06720.44
5.5.360.0100.08320.32
5.5.350.0000.06720.46
5.5.340.0030.08020.74
5.5.330.0200.03720.92
5.5.320.0070.04020.84
5.5.310.0000.08020.89
5.5.300.0100.07320.86
5.5.290.0100.07720.64
5.5.280.0130.08020.78
5.5.270.0130.07320.75
5.5.260.0070.08320.73
5.5.250.0130.07720.70
5.5.240.0130.07020.15
5.5.230.0100.07020.16
5.5.220.0070.07720.13
5.5.210.0030.09020.27
5.5.200.0130.07320.09
5.5.190.0030.09320.27
5.5.180.0070.08020.19
5.5.160.0030.07720.18
5.5.150.0000.04320.16
5.5.140.0000.04320.27
5.5.130.0100.08020.14
5.5.120.0000.04720.11
5.5.110.0070.03720.27
5.5.100.0070.04020.08
5.5.90.0030.03720.13
5.5.80.0070.04320.15
5.5.70.0030.03720.14
5.5.60.0030.03720.06
5.5.50.0070.03320.05
5.5.40.0030.04320.07
5.5.30.0030.03720.05
5.5.20.0030.04020.00
5.5.10.0030.03720.03
5.5.00.0070.08720.05
5.4.450.0030.08319.36
5.4.440.0030.07019.45
5.4.430.0030.07319.32
5.4.420.0070.08019.50
5.4.410.0100.06719.23
5.4.400.0030.07018.85
5.4.390.0030.04318.85
5.4.380.0100.07019.03
5.4.370.0000.07719.16
5.4.360.0100.08018.88
5.4.350.0000.05719.13
5.4.340.0070.07318.95
5.4.320.0030.05019.09
5.4.310.0000.04319.18
5.4.300.0170.07019.23
5.4.290.0100.06718.85
5.4.280.0130.03318.84
5.4.270.0030.03719.16
5.4.260.0100.03018.84
5.4.250.0030.03719.09
5.4.240.0030.03718.94
5.4.230.0030.03719.04
5.4.220.0030.03719.22
5.4.210.0070.04019.12
5.4.200.0000.04019.14
5.4.190.0070.03719.20
5.4.180.0030.03318.86
5.4.170.0030.08019.03
5.4.160.0070.07318.93
5.4.150.0030.03719.03
5.4.140.0000.03716.47
5.4.130.0030.03316.48
5.4.120.0000.03716.31
5.4.110.0100.03716.33
5.4.100.0000.03716.34
5.4.90.0070.03016.49
5.4.80.0030.03316.46
5.4.70.0000.04016.32
5.4.60.0030.03316.25
5.4.50.0070.03016.55
5.4.40.0070.04316.42
5.4.30.0000.03716.41
5.4.20.0070.03316.36
5.4.10.0030.04016.40
5.4.00.0030.03315.85
5.3.290.0100.04014.68
5.3.280.0000.04014.71
5.3.270.0000.07714.67
5.3.260.0030.08014.71
5.3.250.0030.04714.66
5.3.240.0070.02714.71
5.3.230.0000.04014.71
5.3.220.0030.03314.63
5.3.210.0100.02714.68
5.3.200.0030.03714.52
5.3.190.0000.05014.62
5.3.180.0000.03714.54
5.3.170.0030.03314.51
5.3.160.0000.03714.61
5.3.150.0070.03014.48
5.3.140.0030.03314.48
5.3.130.0000.03714.67
5.3.120.0000.04014.52
5.3.110.0000.04314.54
5.3.100.0030.03714.00
5.3.90.0030.03014.07
5.3.80.0030.04014.00
5.3.70.0030.03314.13
5.3.60.0030.03313.91
5.3.50.0030.03314.07
5.3.40.0000.03713.96
5.3.30.0000.03714.02
5.3.20.0030.06313.73
5.3.10.0030.05313.75
5.3.00.0000.03313.67
5.2.170.0000.03011.28
5.2.160.0030.02711.08
5.2.150.0000.06011.13
5.2.140.0030.03711.23
5.2.130.0030.02311.23
5.2.120.0000.03011.05
5.2.110.0000.02711.04
5.2.100.0030.03011.00
5.2.90.0000.02711.11
5.2.80.0030.02711.15
5.2.70.0000.05311.12
5.2.60.0030.04011.18
5.2.50.0000.04710.95
5.2.40.0100.01710.91
5.2.30.0000.03311.09
5.2.20.0000.06010.96
5.2.10.0030.06010.81
5.2.00.0070.05310.82
5.1.60.0070.03010.09
5.1.50.0030.05310.07
5.1.40.0100.04010.07
5.1.30.0000.05710.20
5.1.20.0000.04710.38
5.1.10.0070.05010.11
5.1.00.0030.05010.17
5.0.50.0000.0539.52
5.0.40.0030.0439.52
5.0.30.0030.0609.52
5.0.20.0030.0409.52
5.0.10.0000.0479.52
5.0.00.0030.0509.52
4.4.90.0000.0339.52
4.4.80.0000.0139.52
4.4.70.0070.0309.52
4.4.60.0030.0309.52
4.4.50.0000.0309.52
4.4.40.0030.0509.52
4.4.30.0030.0339.52
4.4.20.0000.0279.52
4.4.10.0000.0409.52
4.4.00.0000.0579.52
4.3.110.0030.0309.52
4.3.100.0030.0309.52
4.3.90.0000.0279.52
4.3.80.0030.0279.52
4.3.70.0030.0309.52
4.3.60.0000.0339.52
4.3.50.0070.0279.52
4.3.40.0030.0509.52
4.3.30.0030.0239.52
4.3.20.0000.0379.52
4.3.10.0000.0379.52
4.3.00.0030.0339.52

preferences:
43.19 ms | 401 KiB | 5 Q