3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bar(callable $fn) { echo "It passed a callable check\n"; $fn(); } class foo { private $value = '12345'; function bar() { echo "oh dear lord, this is an instance function"; echo "value is: ".$this->value; // echo "where did it go?"; } } $foo = new foo; @bar(['foo', 'bar']); echo "wait what?";

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.0140.00418.55
8.3.50.0120.01021.16
8.3.40.0110.01118.83
8.3.30.0120.00618.84
8.3.20.0040.00420.25
8.3.10.0040.00423.52
8.3.00.0080.00022.55
8.2.180.0070.01416.63
8.2.170.0070.00722.96
8.2.160.0140.00320.42
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0090.00017.60
8.2.110.0070.00320.47
8.2.100.0080.00417.91
8.2.90.0040.00418.16
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0000.00817.92
8.2.50.0030.00618.07
8.2.40.0000.00821.13
8.2.30.0050.00518.18
8.2.20.0070.00017.75
8.2.10.0000.00718.15
8.2.00.0040.00418.04
8.1.280.0170.00025.92
8.1.270.0000.00920.33
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0080.00022.06
8.1.230.0060.00620.96
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0100.00317.35
8.1.190.0040.00417.38
8.1.180.0000.00818.10
8.1.170.0030.00518.59
8.1.160.0040.00722.02
8.1.150.0040.00418.89
8.1.140.0040.00417.44
8.1.130.0040.00417.71
8.1.120.0000.00717.41
8.1.110.0000.00717.49
8.1.100.0000.00717.42
8.1.90.0070.00017.42
8.1.80.0000.00717.49
8.1.70.0070.00017.43
8.1.60.0030.00517.58
8.1.50.0000.00817.59
8.1.40.0000.00817.55
8.1.30.0060.00317.51
8.1.20.0000.00717.67
8.1.10.0050.00217.43
8.1.00.0040.00417.57
8.0.300.0000.00720.21
8.0.290.0000.00816.75
8.0.280.0040.00418.30
8.0.270.0030.00317.28
8.0.260.0040.00417.17
8.0.250.0050.00316.96
8.0.240.0030.00516.96
8.0.230.0070.00016.99
8.0.220.0070.00016.86
8.0.210.0000.00816.93
8.0.200.0020.00517.08
8.0.190.0030.00617.01
8.0.180.0040.00417.00
8.0.170.0060.00316.86
8.0.160.0090.00016.97
8.0.150.0050.00216.86
8.0.140.0030.00416.95
8.0.130.0000.00613.47
8.0.120.0030.00516.98
8.0.110.0050.00316.88
8.0.100.0040.00416.82
8.0.90.0040.00416.79
8.0.80.0100.01017.01
8.0.70.0030.00516.83
8.0.60.0060.00316.93
8.0.50.0080.00016.94
8.0.30.0120.00617.21
8.0.20.0090.01017.40
8.0.10.0040.00416.88
8.0.00.0110.00816.81
7.4.330.0000.00515.08
7.4.320.0030.00316.46
7.4.300.0070.00016.51
7.4.290.0050.00516.55
7.4.280.0060.00316.51
7.4.270.0000.00616.50
7.4.260.0030.00316.39
7.4.250.0000.00816.43
7.4.240.0050.00216.56
7.4.230.0070.00016.63
7.4.220.0120.01216.63
7.4.210.0070.01416.68
7.4.200.0030.00316.40
7.4.160.0100.01016.39
7.4.150.0130.00317.40
7.4.140.0130.00917.86
7.4.130.0100.00916.55
7.4.120.0110.00716.61
7.4.110.0130.00316.66
7.4.100.0070.01116.52
7.4.90.0070.01016.67
7.4.80.0240.00019.39
7.4.70.0100.00916.60
7.4.60.0130.00316.68
7.4.50.0090.00016.59
7.4.40.0100.01316.56
7.4.30.0030.01516.59
7.4.00.0070.00715.06
7.3.330.0030.00313.23
7.3.320.0000.00513.34
7.3.310.0070.00016.35
7.3.300.0000.00716.37
7.3.290.0070.01016.33
7.3.280.0130.00516.33
7.3.270.0130.01017.40
7.3.260.0150.00316.37
7.3.250.0060.01216.42
7.3.240.0110.00616.43
7.3.230.0130.01016.39
7.3.210.0030.01316.40
7.3.200.0080.01519.39
7.3.190.0030.01216.41
7.3.180.0130.00416.34
7.3.170.0090.00916.27
7.3.160.0090.00916.37
7.3.10.0070.00716.68
7.3.00.0070.00716.63
7.2.330.0150.00316.63
7.2.320.0110.01416.39
7.2.310.0030.01316.78
7.2.300.0060.01516.45
7.2.290.0090.01216.68
7.2.130.0070.01016.87
7.2.120.0100.00316.87
7.2.110.0050.00516.95
7.2.100.0110.00316.56
7.2.90.0080.00417.00
7.2.80.0030.00916.84
7.2.70.0060.00616.79
7.2.60.0070.00717.02
7.2.50.0060.00317.07
7.2.40.0040.01116.85
7.2.30.0100.00716.94
7.2.20.0110.00316.91
7.2.10.0060.00816.73
7.2.00.0040.00818.18
7.1.250.0040.00415.56
7.1.200.0110.00015.67
7.1.100.0080.00018.17
7.1.70.0030.00616.74
7.1.60.0090.01620.03
7.1.50.0100.01316.90
7.1.00.0030.07722.43
7.0.200.0290.00614.97
7.0.60.0170.07320.08
7.0.50.0000.04317.88
7.0.40.0030.09320.19
7.0.30.0430.06720.10
7.0.20.0200.07320.10
7.0.10.0170.08020.30
7.0.00.0070.08020.25
5.6.280.0000.03321.05
5.6.210.0130.06020.53
5.6.200.0030.04718.20
5.6.190.0000.04720.63
5.6.180.0270.06320.51
5.6.170.0200.04020.54
5.6.160.0070.05720.57
5.6.150.0070.05018.21
5.6.140.0070.08318.28
5.6.130.0130.08018.15
5.6.120.0100.08021.01
5.6.110.0070.05721.11
5.6.100.0100.08021.01
5.6.90.0100.06721.13
5.6.80.0100.07720.37
5.5.350.0070.08020.45
5.5.340.0070.04017.94
5.5.330.0030.08020.13
5.5.320.0300.07320.31
5.5.310.0330.07320.37
5.5.300.0130.07717.97
5.5.290.0100.08017.95
5.5.280.0170.07720.96
5.5.270.0030.08720.76
5.5.260.0030.06020.87
5.5.250.0170.06720.69
5.5.240.0230.04320.34
5.4.450.0830.04719.61
5.4.440.0870.06019.70
5.4.430.0870.05319.63
5.4.420.0900.05019.38
5.4.410.0900.04719.25
5.4.400.0970.04319.26
5.4.390.0800.05019.33
5.4.380.0900.05719.13
5.4.370.0870.05318.88
5.4.360.0900.05718.88
5.4.350.0770.05319.15
5.4.340.0970.07319.26
5.4.320.0970.07018.83
5.4.310.0930.05719.04
5.4.300.0970.05319.16
5.4.290.0770.06019.15
5.4.280.0130.05019.28
5.4.270.0400.05318.98
5.4.260.0670.04319.14
5.4.250.0100.06018.97
5.4.240.0200.04019.14
5.4.230.0270.05719.00
5.4.220.0730.06719.25
5.4.210.0530.03719.29
5.4.200.0100.05317.11
5.4.190.0130.04719.00
5.4.180.0470.06019.13
5.4.170.0800.04719.02
5.4.160.0830.04319.16
5.4.150.1100.04719.12
5.4.140.0830.06316.35
5.4.130.0800.05716.55
5.4.120.0830.05716.73
5.4.110.0700.05716.38
5.4.100.1000.05316.48
5.4.90.1070.04716.62
5.4.80.1000.05716.55
5.4.70.0930.04716.59
5.4.60.0100.04316.54
5.4.50.0030.06316.52
5.4.40.0230.06716.25
5.4.30.0330.06316.53
5.4.20.0230.03716.25

preferences:
59.89 ms | 401 KiB | 5 Q