3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { echo "HI!"; } } $cb = array(new Foo, 'bar'); $cb();

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.1.70.0000.00717.38
8.1.60.0080.00017.62
8.1.50.0080.00017.50
8.1.40.0060.00317.51
8.1.30.0000.00817.50
8.1.20.0030.00617.49
8.1.10.0040.00417.48
8.1.00.0040.00417.40
8.0.200.0000.00616.78
8.0.190.0000.00816.93
8.0.180.0050.00216.90
8.0.170.0040.00416.78
8.0.160.0070.00016.89
8.0.150.0030.00316.73
8.0.140.0000.00816.82
8.0.130.0000.00613.27
8.0.120.0040.00416.75
8.0.110.0050.00216.88
8.0.100.0040.00416.70
8.0.90.0040.00416.85
8.0.80.0000.02016.91
8.0.70.0000.00716.95
8.0.60.0070.00016.84
8.0.50.0000.00716.83
8.0.30.0150.00517.00
8.0.20.0100.00717.40
8.0.10.0070.00016.90
8.0.00.0110.00716.66
7.4.300.0000.00716.57
7.4.290.0020.00516.45
7.4.280.0100.00316.42
7.4.270.0000.00716.48
7.4.260.0050.00516.43
7.4.250.0000.00716.46
7.4.240.0020.00516.58
7.4.230.0030.00316.35
7.4.220.0070.01016.59
7.4.210.0030.01116.54
7.4.200.0000.00716.59
7.4.190.0000.00716.67
7.4.160.0090.00616.67
7.4.150.0070.01817.40
7.4.140.0100.01417.86
7.4.130.0110.00616.48
7.4.120.0090.00916.50
7.4.110.0040.01416.46
7.4.100.0040.01516.63
7.4.90.0130.00416.38
7.4.80.0080.00919.39
7.4.70.0110.00516.64
7.4.60.0070.01016.41
7.4.50.0040.00416.48
7.4.40.0080.00816.53
7.4.30.0120.00916.62
7.4.00.0130.00314.96
7.3.330.0030.00313.13
7.3.320.0060.00013.30
7.3.310.0050.00316.41
7.3.300.0030.00316.39
7.3.290.0110.00916.30
7.3.280.0110.00816.29
7.3.270.0140.00317.40
7.3.260.0110.00716.41
7.3.250.0060.01316.36
7.3.240.0190.00316.27
7.3.230.0030.01316.57
7.3.210.0070.01016.28
7.3.200.0090.00619.39
7.3.190.0090.01216.56
7.3.180.0100.01016.37
7.3.170.0060.00916.53
7.3.160.0090.01216.17
7.3.120.0100.00614.74
7.3.110.0040.01414.38
7.3.100.0170.00014.68
7.3.90.0030.01014.77
7.3.80.0000.01214.80
7.3.70.0030.01014.40
7.3.60.0070.00714.47
7.3.50.0060.00614.92
7.3.40.0000.00814.53
7.3.30.0040.01514.80
7.3.20.0030.00816.57
7.3.10.0070.01116.42
7.3.00.0080.00616.47
7.2.330.0030.01416.50
7.2.320.0060.01216.71
7.2.310.0000.01716.35
7.2.300.0040.01116.30
7.2.290.0160.00816.32
7.2.250.0060.01314.70
7.2.240.0000.01915.20
7.2.230.0090.00614.72
7.2.220.0090.00315.08
7.2.210.0070.00715.11
7.2.200.0070.01015.02
7.2.190.0070.00714.89
7.2.180.0100.00715.09
7.2.170.0040.00715.07
7.2.130.0070.00716.62
7.2.120.0060.00916.98
7.2.110.0000.00916.96
7.2.100.0090.00016.65
7.2.90.0070.00716.96
7.2.80.0000.01417.06
7.2.70.0030.01316.82
7.2.60.0090.00716.69
7.2.50.0040.01116.87
7.2.40.0110.00016.95
7.2.30.0000.01216.95
7.2.20.0090.00616.52
7.2.10.0030.00916.85
7.2.00.0050.00818.09
7.1.330.0060.00715.92
7.1.320.0060.00615.81
7.1.310.0000.01315.85
7.1.300.0060.00315.70
7.1.290.0080.00015.73
7.1.280.0030.01415.51
7.1.270.0030.01115.81
7.1.260.0040.01115.51
7.1.250.0090.00615.63
7.1.240.0070.00715.72
7.1.230.0110.00415.43
7.1.220.0050.00315.68
7.1.210.0060.00315.79
7.1.200.0060.00815.50
7.1.190.0030.00715.73
7.1.180.0060.00915.56
7.1.170.0030.00715.84
7.1.160.0000.01315.59
7.1.150.0040.00715.46
7.1.140.0000.01115.70
7.1.130.0000.01515.55
7.1.120.0030.00715.83
7.1.110.0100.00315.79
7.1.100.0020.01116.98
7.1.90.0000.01415.76
7.1.80.0030.00715.57
7.1.70.0060.01216.21
7.1.60.0090.00817.72
7.1.50.0100.00516.28
7.1.40.0060.00615.55
7.1.30.0000.01215.70
7.1.20.0000.00815.40
7.1.10.0090.00615.63
7.1.00.0060.04019.07
7.0.330.0040.00415.34
7.0.320.0030.00915.24
7.0.310.0040.00815.14
7.0.300.0040.00414.99
7.0.290.0060.00915.07
7.0.280.0080.00015.00
7.0.270.0030.00715.30
7.0.260.0060.00615.22
7.0.250.0050.00515.15
7.0.240.0080.00015.42
7.0.230.0060.00315.34
7.0.220.0060.00315.05
7.0.210.0000.01015.34
7.0.200.0050.01016.07
7.0.190.0060.00815.46
7.0.180.0070.00715.24
7.0.170.0040.00415.02
7.0.160.0060.00615.39
7.0.150.0040.00415.34
7.0.140.0050.04018.64
7.0.130.0090.00615.29
7.0.120.0000.00915.43
7.0.110.0130.00015.36
7.0.100.0030.00915.25
7.0.90.0070.00714.95
7.0.80.0000.01515.15
7.0.70.0070.00714.97
7.0.60.0090.02717.61
7.0.50.0060.04716.60
7.0.40.0100.04316.64
7.0.30.0220.04216.80
7.0.20.0120.02616.51
7.0.10.0150.03816.58
7.0.00.0070.04316.67
5.6.380.0040.01114.18
5.6.370.0070.00714.31
5.6.360.0060.00614.32
5.6.350.0000.00914.11
5.6.340.0030.00614.52
5.6.330.0030.00714.20
5.6.320.0040.01113.99
5.6.310.0070.00714.42
5.6.300.0030.00714.05
5.6.290.0030.00914.27
5.6.280.0070.03817.48
5.6.270.0100.00314.27
5.6.260.0100.00314.38
5.6.250.0120.00314.07
5.6.240.0000.01214.45
5.6.230.0060.00614.50
5.6.220.0070.00714.46
5.6.210.0090.04317.43
5.6.200.0050.04016.22
5.6.190.0050.04517.28
5.6.180.1940.02117.62
5.6.170.0180.01817.47
5.6.160.0090.02517.25
5.6.150.0000.03416.25
5.6.140.0070.03916.33
5.6.130.0030.02816.17
5.6.120.0070.04717.58
5.6.110.0090.04717.71
5.6.100.0060.02317.49
5.6.90.0040.04517.51
5.6.80.0140.03017.36
5.6.70.0190.03517.15
5.6.60.0060.00614.06
5.6.50.0030.01013.98
5.6.40.0060.00614.00
5.6.30.0060.00314.10
5.6.20.0000.01514.43
5.6.10.0060.00714.10
5.6.00.0100.00314.20
5.5.380.0000.00711.24
5.5.370.0030.00311.18
5.5.360.0040.00811.22
5.5.350.0120.02515.85
5.5.340.0070.04314.62
5.5.330.0100.02215.87
5.5.320.0160.02215.82
5.5.310.0200.04015.80
5.5.300.0080.03214.58
5.5.290.0080.04214.59
5.5.280.0030.04516.08
5.5.270.0070.02915.97
5.5.260.0170.03816.04
5.5.250.0100.04515.84
5.5.240.0060.04215.65
5.5.230.0030.00911.18
5.5.220.0070.00411.18
5.5.210.0100.00011.18
5.5.200.0090.00311.18
5.5.190.0070.00011.18
5.5.180.0030.00811.32
5.5.170.0000.01211.18
5.5.160.0030.00611.18
5.5.150.0100.00311.18
5.5.140.0030.00311.18
5.5.130.0060.00611.18
5.5.120.0030.00811.18
5.5.110.0100.00311.18
5.5.100.0000.00911.18
5.5.90.0000.01311.18
5.5.80.0070.00311.18
5.5.70.0070.00011.19
5.5.60.0040.00811.18
5.5.50.0100.00011.18
5.5.40.0060.00611.18
5.5.30.0070.00211.18
5.5.20.0030.00311.18
5.5.10.0000.01011.18
5.5.00.0030.00711.18
5.4.450.0180.02916.02
5.4.440.0380.03515.25
5.4.430.0300.03515.23
5.4.420.0320.00215.37
5.4.410.0030.03315.02
5.4.400.0550.03314.84
5.4.390.0550.02714.89
5.4.380.0170.02314.90
5.4.370.0030.02614.95
5.4.360.0130.02314.96
5.4.350.0060.02511.60
5.4.340.0050.02411.60
5.4.330.0000.00911.18
5.4.320.0050.02011.84
5.4.310.0040.02511.84
5.4.300.0090.02611.84
5.4.290.0060.02711.84
5.4.280.0060.03611.79
5.4.270.0100.03111.79
5.4.260.0060.02911.78
5.4.250.0060.02711.79
5.4.240.0110.02211.79
5.4.230.0070.02511.78
5.4.220.0060.02511.78
5.4.210.0050.05111.78
5.4.200.0060.03011.78
5.4.190.0040.03411.78
5.4.180.0090.02511.78
5.4.170.0070.02711.79
5.4.160.0100.02211.78
5.4.150.0040.03011.78
5.4.140.0060.02211.62
5.4.130.0020.02411.62
5.4.120.0060.02111.59
5.4.110.0070.02511.59
5.4.100.0070.02111.63
5.4.90.0070.02311.60
5.4.80.0040.02311.59
5.4.70.0080.02211.59
5.4.60.0050.02711.59
5.4.50.0080.02911.59
5.4.40.0050.02311.59
5.4.30.0060.02611.58
5.4.20.0060.02611.59
5.4.10.0030.02211.58
5.4.00.0060.02811.33
5.3.290.0060.02411.99
5.3.280.0060.02811.94
5.3.270.0060.04211.95
5.3.260.0050.02911.95
5.3.250.0030.03311.95
5.3.240.0070.03111.95
5.3.230.0070.02811.94
5.3.220.0060.03011.93
5.3.210.0060.02311.93
5.3.200.0040.02311.93
5.3.190.0070.02011.93
5.3.180.0060.02311.92
5.3.170.0060.02511.92
5.3.160.0070.02211.92
5.3.150.0090.02411.92
5.3.140.0090.02311.92
5.3.130.0070.03111.92
5.3.120.0070.03011.92
5.3.110.0100.02711.92
5.3.100.0070.03111.64
5.3.90.0070.02911.64
5.3.80.0060.03211.64
5.3.70.0090.02911.63
5.3.60.0070.02511.63
5.3.50.0080.02611.60
5.3.40.0090.03111.60
5.3.30.0090.02011.58
5.3.20.0100.02411.47
5.3.10.0110.02711.45
5.3.00.0040.02811.45
5.2.170.0050.01810.20
5.2.160.0050.01910.20
5.2.150.0040.01910.20
5.2.140.0050.02010.20
5.2.130.0090.02110.18
5.2.120.0040.02110.18
5.2.110.0060.01610.18
5.2.100.0050.01910.18
5.2.90.0020.02110.18
5.2.80.0040.02810.17
5.2.70.0050.02210.17
5.2.60.0070.02210.15
5.2.50.0040.02810.14
5.2.40.0050.02510.13
5.2.30.0060.02210.11
5.2.20.0070.02910.11
5.2.10.0060.01710.06
5.2.00.0050.0169.99
5.1.60.0080.0149.63
5.1.50.0080.0219.63
5.1.40.0050.0249.62
5.1.30.0040.0229.79
5.1.20.0040.0229.81
5.1.10.0110.0339.67
5.1.00.0100.0349.67
5.0.50.0070.0238.91
5.0.40.0050.0158.84
5.0.30.0050.0238.74
5.0.20.0060.0148.73
5.0.10.0050.0178.72
5.0.00.0020.0258.71
4.4.90.0020.0137.97
4.4.80.0040.0127.96
4.4.70.0020.0117.96
4.4.60.0030.0107.96
4.4.50.0010.0157.97
4.4.40.0010.0177.94
4.4.30.0020.0147.96
4.4.20.0020.0158.01
4.4.10.0070.0168.01
4.4.00.0040.0167.97
4.3.110.0030.0147.92
4.3.100.0030.0107.92
4.3.90.0030.0117.91
4.3.80.0040.0157.88
4.3.70.0030.0097.90
4.3.60.0040.0087.90
4.3.50.0050.0097.90
4.3.40.0050.0147.86
4.3.30.0020.0107.24
4.3.20.0020.0097.23
4.3.10.0020.0107.20
4.3.00.0020.01214.93

preferences:
13.53 ms | 406 KiB | 5 Q