3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $method; public function testA() { } public function callIt() { $method = $this->method; $method(); } } $t = new Test(); $t->method = $t->testA; var_dump($t->callIt()); die;

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.0130.01018.43
8.3.50.0110.00821.92
8.3.40.0040.01118.64
8.3.30.0140.00018.96
8.3.20.0040.00420.04
8.3.10.0000.00821.80
8.3.00.0040.00422.43
8.2.180.0080.00816.50
8.2.170.0100.00322.96
8.2.160.0100.00720.80
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0090.00019.25
8.2.110.0070.00322.20
8.2.100.0110.00019.64
8.2.90.0030.00519.28
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0000.00817.93
8.2.50.0070.00318.07
8.2.40.0020.00518.03
8.2.30.0000.00717.98
8.2.20.0080.00017.65
8.2.10.0040.00417.59
8.2.00.0040.00417.63
8.1.280.0090.00625.92
8.1.270.0000.00822.09
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00323.71
8.1.230.0040.00719.05
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.51
8.1.180.0050.00518.10
8.1.170.0000.00818.51
8.1.160.0000.00721.98
8.1.150.0040.00418.48
8.1.140.0070.00017.36
8.1.130.0040.00417.87
8.1.120.0040.00417.40
8.1.110.0000.00717.41
8.1.100.0050.00317.32
8.1.90.0000.00717.33
8.1.80.0000.00717.39
8.1.70.0030.00317.28
8.1.60.0090.00017.64
8.1.50.0000.00817.46
8.1.40.0060.00317.39
8.1.30.0070.00017.53
8.1.20.0040.00417.61
8.1.10.0040.00417.46
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0070.00017.04
8.0.280.0050.00318.24
8.0.270.0030.00317.20
8.0.260.0070.00016.76
8.0.250.0030.00317.00
8.0.240.0050.00316.82
8.0.230.0000.00716.86
8.0.220.0070.00016.94
8.0.210.0040.00316.87
8.0.200.0030.00316.87
8.0.190.0040.00416.92
8.0.180.0040.00416.88
8.0.170.0030.00316.95
8.0.160.0000.00716.98
8.0.150.0000.00716.87
8.0.140.0050.00216.85
8.0.130.0000.00613.31
8.0.120.0000.00716.84
8.0.110.0040.00416.79
8.0.100.0040.00416.77
8.0.90.0040.00416.93
8.0.80.0060.01516.88
8.0.70.0080.00016.98
8.0.60.0040.00417.00
8.0.50.0040.00416.78
8.0.30.0120.01017.07
8.0.20.0120.00717.40
8.0.10.0040.00416.80
8.0.00.0120.00816.83
7.4.330.0060.00015.03
7.4.320.0000.00616.45
7.4.300.0030.00316.39
7.4.290.0040.00416.60
7.4.280.0060.00316.63
7.4.270.0030.00316.50
7.4.260.0060.00616.34
7.4.250.0050.00216.59
7.4.240.0040.00316.55
7.4.230.0070.00016.63
7.4.220.0120.00616.52
7.4.210.0080.01016.51
7.4.200.0030.00316.30
7.4.190.0070.00016.66
7.4.160.0000.02116.69
7.4.150.0100.00717.40
7.4.140.0070.01017.86
7.4.130.0130.00616.41
7.4.120.0080.01016.49
7.4.110.0100.00916.54
7.4.100.0090.01216.48
7.4.90.0100.00716.54
7.4.80.0170.00619.39
7.4.70.0060.00916.41
7.4.60.0080.00816.61
7.4.50.0040.00416.57
7.4.40.0030.01222.77
7.4.30.0030.01316.50
7.4.00.0060.00915.05
7.3.330.0030.00313.30
7.3.320.0000.00513.20
7.3.310.0070.00016.36
7.3.300.0030.00316.23
7.3.290.0070.01116.32
7.3.280.0010.01416.37
7.3.270.0070.01017.40
7.3.260.0120.00616.48
7.3.250.0070.01016.43
7.3.240.0100.00616.50
7.3.230.0110.00716.39
7.3.210.0170.00016.33
7.3.200.0180.00019.39
7.3.190.0070.01416.43
7.3.180.0110.00516.29
7.3.170.0110.01016.51
7.3.160.0000.01416.47
7.3.120.0060.00914.60
7.2.330.0060.01116.39
7.2.320.0140.00916.33
7.2.310.0060.01016.58
7.2.300.0110.01116.70
7.2.290.0100.00716.68
7.2.80.0030.01016.70
7.2.60.0030.01016.88
7.2.00.0030.01219.05
7.1.200.0030.00915.77
7.1.100.0080.00418.08
7.1.70.0030.00617.05
7.1.60.0030.02019.82
7.1.50.0060.01616.80
7.1.00.0070.06722.33
7.0.200.0050.00216.76
7.0.140.0070.07022.09
7.0.60.0100.07320.07
7.0.50.0100.04317.87
7.0.40.0000.05720.23
7.0.30.0330.06020.24
7.0.20.0270.05720.06
7.0.10.0430.06020.08
7.0.00.0100.04320.23
5.6.280.0030.07320.87
5.6.210.0070.06020.61
5.6.200.0030.08318.25
5.6.190.0070.09020.60
5.6.180.3230.03720.40
5.6.170.0230.08720.55
5.6.160.0170.06720.55
5.6.150.0070.05318.17
5.6.140.0070.04718.18
5.6.130.0030.08018.18
5.6.120.0100.08021.04
5.6.110.0200.07720.98
5.6.100.0100.04020.98
5.6.90.0030.08021.12
5.6.80.0070.08020.41
5.6.70.0270.08020.50
5.5.350.0030.08320.39
5.5.340.0130.06718.02
5.5.330.0100.07020.43
5.5.320.0370.07320.20
5.5.310.0300.07320.25
5.5.300.0070.08018.03
5.5.290.0030.08317.98
5.5.280.0170.05020.98
5.5.270.0070.08020.73
5.5.260.0100.06320.84
5.5.250.0100.03720.69
5.5.240.0000.04020.20
5.4.450.0700.03719.64
5.4.440.0330.03319.41
5.4.430.1130.00019.23
5.4.420.1800.00019.51
5.4.410.0170.04718.81
5.4.400.0100.05718.67
5.4.390.0070.05318.62
5.4.380.0330.05018.72
5.4.370.0230.05018.63
5.4.360.0230.04718.47
5.4.350.0270.05318.79
5.4.340.0270.04718.51
5.4.320.0140.04212.50
5.4.310.0050.03912.50
5.4.300.0070.03612.50
5.4.290.0060.04412.50
5.4.280.0080.03412.39
5.4.270.0110.04612.36
5.4.260.0120.04112.36
5.4.250.0100.05112.36
5.4.240.0080.05012.36
5.4.230.0070.05012.35
5.4.220.0100.04112.36
5.4.210.0110.03512.36
5.4.200.0050.04012.35
5.4.190.0070.03812.36
5.4.180.0100.03412.35
5.4.170.0090.05012.36
5.4.160.0140.05112.36
5.4.150.0110.05112.35
5.4.140.0150.05012.04
5.4.130.0070.04512.03
5.4.120.0110.04511.98
5.4.110.0120.04711.98
5.4.100.0110.05011.98
5.4.90.0190.07611.97
5.4.80.0160.04911.98
5.4.70.0090.04511.97
5.4.60.0070.04611.97
5.4.50.0110.03611.97
5.4.40.0060.03811.96
5.4.30.0120.03411.96
5.4.20.0040.04211.96
5.4.10.0100.03611.96
5.4.00.0020.04411.45
5.3.290.0070.03912.80
5.3.280.0090.03612.71
5.3.270.0080.03912.72
5.3.260.0060.04312.72
5.3.250.0070.04512.71
5.3.240.0050.04612.72
5.3.230.0100.05012.71
5.3.220.0060.04712.68
5.3.210.0120.04312.68
5.3.200.0080.05112.68
5.3.190.0110.04712.68
5.3.180.0110.04712.67
5.3.170.0100.05112.67
5.3.160.0180.05912.68
5.3.150.0080.04112.67
5.3.140.0060.03812.66
5.3.130.0070.04412.66
5.3.120.0090.04012.66
5.3.110.0110.04212.66
5.3.100.0050.03812.12
5.3.90.0100.03812.09
5.3.80.0030.04212.08
5.3.70.0060.03912.07
5.3.60.0050.03912.06
5.3.50.0110.03212.00
5.3.40.0040.04112.00
5.3.30.0070.03511.95
5.3.20.0080.03611.73
5.3.10.0060.03611.70
5.3.00.0130.04011.68
5.2.170.0060.0309.18
5.2.160.0050.0299.19
5.2.150.0100.0259.18
5.2.140.0080.0309.18
5.2.130.0050.0299.14
5.2.120.0080.0279.14
5.2.110.0060.0329.15
5.2.100.0090.0259.15
5.2.90.0040.0309.14
5.2.80.0090.0279.14
5.2.70.0060.0419.14
5.2.60.0080.0319.09
5.2.50.0060.0299.06
5.2.40.0090.0259.04
5.2.30.0040.0319.02
5.2.20.0050.0389.02
5.2.10.0050.0278.92
5.2.00.0080.0348.77
5.1.60.0070.0338.05
5.1.50.0070.0308.05
5.1.40.0050.0288.04
5.1.30.0040.0308.39
5.1.20.0060.0298.42
5.1.10.0080.0238.13
5.1.00.0070.0258.13
5.0.50.0050.0206.61
5.0.40.0050.0206.47
5.0.30.0040.0316.28
5.0.20.0070.0206.26
5.0.10.0060.0186.23
5.0.00.0030.0386.23
4.4.90.0020.0164.78
4.4.80.0030.0164.76
4.4.70.0030.0174.75
4.4.60.0050.0134.75
4.4.50.0040.0144.77
4.4.40.0040.0254.71
4.4.30.0020.0174.76
4.4.20.0050.0154.84
4.4.10.0040.0154.85
4.4.00.0040.0264.76
4.3.110.0050.0154.67
4.3.100.0020.0164.66
4.3.90.0020.0164.64
4.3.80.0030.0254.58
4.3.70.0050.0144.63
4.3.60.0020.0174.63
4.3.50.0050.0154.63
4.3.40.0040.0244.54
4.3.30.0010.0183.28
4.3.20.0030.0163.26
4.3.10.0040.0143.23
4.3.00.0030.01713.28

preferences:
50.86 ms | 401 KiB | 5 Q