3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar; public function __construct() { $this->bar = function() { print "this is in bar"; }; } } $foo = new Foo(); $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.40.0110.00718.67
8.3.30.0150.00018.93
8.3.20.0050.00320.34
8.3.10.0040.00423.66
8.3.00.0040.00419.66
8.2.170.0070.00722.96
8.2.160.0030.01020.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0060.00319.36
8.2.110.0070.00322.22
8.2.100.0080.00417.72
8.2.90.0040.00419.09
8.2.80.0040.00417.97
8.2.70.0030.00717.63
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0040.00418.25
8.2.20.0000.00717.57
8.2.10.0000.00818.06
8.2.00.0040.00417.74
8.1.270.0090.00023.83
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0040.00423.79
8.1.230.0000.01019.10
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0000.00917.22
8.1.190.0000.00817.23
8.1.180.0050.00218.10
8.1.170.0080.00018.71
8.1.160.0000.00721.93
8.1.150.0070.00018.59
8.1.140.0040.00417.44
8.1.130.0000.00717.74
8.1.120.0000.00717.51
8.1.110.0030.00717.38
8.1.100.0000.00717.35
8.1.90.0050.00217.42
8.1.80.0050.00317.45
8.1.70.0000.00717.43
8.1.60.0060.00317.60
8.1.50.0000.00817.59
8.1.40.0050.00217.41
8.1.30.0000.00817.68
8.1.20.0050.00317.68
8.1.10.0060.00317.46
8.1.00.0050.00317.49
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.28
8.0.270.0070.00017.25
8.0.260.0070.00017.11
8.0.250.0030.00316.95
8.0.240.0090.00016.93
8.0.230.0030.00316.80
8.0.220.0030.00416.83
8.0.210.0080.00016.89
8.0.200.0060.00016.96
8.0.190.0000.00716.88
8.0.180.0000.00716.77
8.0.170.0050.00316.93
8.0.160.0000.00716.88
8.0.150.0000.00716.70
8.0.140.0050.00516.86
8.0.130.0000.00613.31
8.0.120.0060.00316.68
8.0.110.0040.00416.94
8.0.100.0000.00716.92
8.0.90.0070.00016.72
8.0.80.0170.00316.93
8.0.70.0000.00716.73
8.0.60.0000.00816.93
8.0.50.0070.00016.71
8.0.30.0070.01417.20
8.0.20.0110.01217.40
8.0.10.0060.00317.00
8.0.00.0050.01216.62
7.4.330.0030.00315.08
7.4.320.0000.00716.61
7.4.300.0000.00616.61
7.4.290.0030.00316.64
7.4.280.0000.00816.47
7.4.270.0070.00016.47
7.4.260.0070.00016.58
7.4.250.0030.00516.57
7.4.240.0030.00516.43
7.4.230.0030.00316.50
7.4.220.0090.00916.50
7.4.210.0060.01016.66
7.4.200.0000.00716.70
7.4.160.0040.01116.61
7.4.150.0070.01017.40
7.4.140.0060.01217.86
7.4.130.0070.01116.57
7.4.120.0120.00916.58
7.4.110.0130.00316.38
7.4.100.0160.00716.32
7.4.90.0060.01416.38
7.4.80.0040.01919.39
7.4.70.0080.00816.43
7.4.60.0160.00016.39
7.4.50.0050.00016.64
7.4.40.0100.00716.63
7.4.30.0060.00916.65
7.4.00.0030.01315.04
7.3.330.0000.00513.16
7.3.320.0060.00013.05
7.3.310.0030.00316.41
7.3.300.0000.00616.15
7.3.290.0070.00716.20
7.3.280.0080.00916.30
7.3.270.0150.00317.40
7.3.260.0190.00016.48
7.3.250.0100.00916.40
7.3.240.0000.01716.33
7.3.230.0080.01216.39
7.3.210.0070.01016.48
7.3.200.0150.00716.18
7.3.190.0040.01516.23
7.3.180.0080.00816.53
7.3.170.0130.02016.27
7.3.160.0040.01216.60
7.3.120.0090.00314.79
7.2.330.0070.01016.75
7.2.320.0080.00816.39
7.2.310.0100.00716.41
7.2.300.0130.00316.63
7.2.290.0090.01316.30
7.1.100.0000.00917.98
7.1.70.0070.00717.13
7.1.60.0100.01019.70
7.1.50.0070.01817.00
7.1.00.0130.06722.41
7.0.200.0030.00516.73
7.0.140.0030.07021.99
7.0.60.0100.08319.91
7.0.50.0100.04317.75
7.0.40.0100.04319.97
7.0.30.0230.05720.22
7.0.20.0170.05020.10
7.0.10.0200.05020.30
7.0.00.0070.08320.25
5.6.280.0030.07321.16
5.6.210.0030.09020.51
5.6.200.0000.04318.19
5.6.190.0030.04320.41
5.6.180.0430.08020.39
5.6.170.0130.04720.55
5.6.160.0100.05020.61
5.6.150.0070.03718.27
5.6.140.0070.08018.16
5.6.130.0070.08718.27
5.6.120.0100.07321.05
5.6.110.0200.05721.02
5.6.100.0070.08020.95
5.6.90.0030.04020.98
5.6.80.0100.05020.37
5.5.350.0030.09020.43
5.5.340.0000.04317.98
5.5.330.0170.07320.42
5.5.320.0200.04320.51
5.5.310.0270.05320.51
5.5.300.0000.04317.92
5.5.290.0070.04318.09
5.5.280.0200.07320.88
5.5.270.0030.04020.77
5.5.260.0100.07020.86
5.5.250.0070.07020.71
5.5.240.0000.08720.27
5.4.450.1130.04319.63
5.4.440.0300.04343.79
5.4.430.0270.04043.77
5.4.420.0300.04343.77
5.4.410.0370.04043.77
5.4.400.0230.04043.75
5.4.390.0270.04038.99
5.4.380.0330.04018.75
5.4.370.0070.05718.74
5.4.360.0230.04318.68
5.4.350.0200.04718.76
5.4.340.0170.05018.78
5.4.320.0070.03612.51
5.4.310.0060.04612.51
5.4.300.0050.04112.51
5.4.290.0060.04412.50
5.4.280.0050.03912.39
5.4.270.0090.04212.40
5.4.260.0050.04312.40
5.4.250.0080.03612.40
5.4.240.0060.04912.40
5.4.230.0040.04712.39
5.4.220.0100.03512.39
5.4.210.0030.03812.39
5.4.200.0070.03712.39
5.4.190.0070.04112.39
5.4.180.0110.03512.39
5.4.170.0070.04412.40
5.4.160.0050.04212.39
5.4.150.0070.04112.39
5.4.140.0080.03912.07
5.4.130.0060.04012.06
5.4.120.0030.03812.02
5.4.110.0050.04312.02
5.4.100.0050.04112.02
5.4.90.0020.04112.02
5.4.80.0050.04312.02
5.4.70.0060.03912.01
5.4.60.0080.03212.02
5.4.50.0080.04212.02
5.4.40.0070.03812.00
5.4.30.0070.03712.00
5.4.20.0040.04012.00
5.4.10.0050.03512.00
5.4.00.0050.03611.48
5.3.290.0050.04412.80
5.3.280.0050.03912.71
5.3.270.0040.04112.72
5.3.260.0070.03812.72
5.3.250.0060.04312.71
5.3.240.0060.04712.71
5.3.230.0110.04112.71
5.3.220.0070.03612.68
5.3.210.0070.04212.68
5.3.200.0080.04012.68
5.3.190.0100.03812.68
5.3.180.0080.03912.68
5.3.170.0090.04212.67
5.3.160.0070.03512.68
5.3.150.0080.04412.67
5.3.140.0100.03812.66
5.3.130.0100.03812.65
5.3.120.0060.04012.66
5.3.110.0050.04012.66
5.3.100.0080.03512.12
5.3.90.0070.03612.10
5.3.80.0100.03412.09
5.3.70.0080.03712.09
5.3.60.0080.03612.07
5.3.50.0060.03712.04
5.3.40.0070.03712.03
5.3.30.0070.03511.98
5.3.20.0070.03511.77
5.3.10.0020.04111.73
5.3.00.0050.03811.71
5.2.170.0060.0309.23
5.2.160.0050.0309.22
5.2.150.0050.0319.22
5.2.140.0030.0349.22
5.2.130.0040.0369.18
5.2.120.0050.0299.18
5.2.110.0050.0289.18
5.2.100.0050.0299.18
5.2.90.0040.0319.17
5.2.80.0060.0369.17
5.2.70.0070.0289.17
5.2.60.0060.0309.13
5.2.50.0030.0329.09
5.2.40.0050.0299.07
5.2.30.0070.0289.05
5.2.20.0050.0319.04
5.2.10.0050.0288.95
5.2.00.0060.0288.80
5.1.60.0040.0248.09
5.1.50.0020.0278.08
5.1.40.0040.0248.07
5.1.30.0040.0268.41
5.1.20.0040.0288.44
5.1.10.0050.0268.16
5.1.00.0050.0258.16
5.0.50.0030.0216.64
5.0.40.0030.0206.50
5.0.30.0030.0316.32
5.0.20.0050.0186.28
5.0.10.0030.0216.26
5.0.00.0040.0336.25
4.4.90.0020.0194.77
4.4.80.0010.0174.76
4.4.70.0030.0164.75
4.4.60.0020.0164.75
4.4.50.0030.0154.77
4.4.40.0040.0244.71
4.4.30.0030.0224.76
4.4.20.0070.0114.84
4.4.10.0020.0174.85
4.4.00.0040.0244.76
4.3.110.0010.0174.67
4.3.100.0030.0154.67
4.3.90.0040.0134.63
4.3.80.0040.0234.58
4.3.70.0050.0124.63
4.3.60.0030.0144.63
4.3.50.0040.0144.63
4.3.40.0030.0254.54
4.3.30.0020.0163.30
4.3.20.0030.0153.28
4.3.10.0020.0153.23
4.3.00.0000.01737.49

preferences:
48.98 ms | 400 KiB | 5 Q