3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function foo(String $foo); } class Bar implements Foo { public function foo(String $foo) { return new StdClass; } } $b = new Bar; var_dump($b->foo("test"));

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.0110.01118.30
8.3.50.0100.00521.14
8.3.40.0070.01018.48
8.3.30.0100.00320.28
8.3.20.0110.00420.35
8.3.10.0090.00022.10
8.3.00.0050.00222.39
8.2.180.0070.00716.50
8.2.170.0140.00722.96
8.2.160.0110.00422.08
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00820.64
8.2.110.0060.00322.09
8.2.100.0070.00717.78
8.2.90.0040.00419.28
8.2.80.0070.00019.28
8.2.70.0000.00817.50
8.2.60.0060.00318.04
8.2.50.0060.00318.07
8.2.40.0000.00818.21
8.2.30.0070.00019.32
8.2.20.0050.00317.71
8.2.10.0000.00817.68
8.2.00.0070.00417.61
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0110.00326.35
8.1.250.0000.00828.09
8.1.240.0090.00023.98
8.1.230.0070.00419.08
8.1.220.0040.00417.75
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0050.00317.30
8.1.180.0090.00318.10
8.1.170.0030.00518.57
8.1.160.0040.00418.76
8.1.150.0000.00918.69
8.1.140.0000.00717.43
8.1.130.0070.00017.66
8.1.120.0030.00517.37
8.1.110.0030.00817.46
8.1.100.0040.00417.52
8.1.90.0000.00817.37
8.1.80.0000.00817.44
8.1.70.0030.00317.47
8.1.60.0080.00017.45
8.1.50.0000.00717.48
8.1.40.0080.00017.50
8.1.30.0050.00317.57
8.1.20.0030.00617.57
8.1.10.0000.00717.48
8.1.00.0080.00017.29
8.0.300.0080.00018.77
8.0.290.0040.00417.18
8.0.280.0000.00718.31
8.0.270.0070.00017.16
8.0.260.0060.00016.77
8.0.250.0030.00316.82
8.0.240.0040.00416.82
8.0.230.0040.00416.82
8.0.220.0000.00716.89
8.0.210.0000.00716.80
8.0.200.0030.00316.96
8.0.190.0080.00016.95
8.0.180.0030.00316.95
8.0.170.0000.00716.95
8.0.160.0050.00316.82
8.0.150.0040.00416.85
8.0.140.0000.00816.86
8.0.130.0000.00513.29
8.0.120.0070.00016.74
8.0.110.0040.00416.95
8.0.100.0070.00016.77
8.0.90.0030.00416.93
8.0.80.0120.00916.85
8.0.70.0000.00716.80
8.0.60.0070.00016.78
8.0.50.0030.00516.74
8.0.30.0070.01217.00
8.0.20.0120.01317.40
8.0.10.0000.01017.07
8.0.00.0100.00916.77
7.4.330.0070.00015.00
7.4.320.0030.00316.58
7.4.300.0030.00316.58
7.4.290.0000.00716.52
7.4.280.0000.00716.58
7.4.270.0060.00316.57
7.4.260.0060.00013.17
7.4.250.0030.00516.46
7.4.240.0030.00516.46
7.4.230.0000.00716.70
7.4.220.0180.00016.57
7.4.210.0120.00516.54
7.4.200.0000.00716.60
7.4.190.0040.00416.31
7.4.160.0100.00616.47
7.4.150.0080.00817.40
7.4.140.0060.01117.86
7.4.130.0090.00916.45
7.4.120.0080.01116.50
7.4.110.0100.00716.34
7.4.100.0120.00916.55
7.4.90.0100.00716.65
7.4.80.0160.00619.39
7.4.70.0080.00916.45
7.4.60.0070.01116.52
7.4.50.0040.00416.49
7.4.40.0030.01022.77
7.4.30.0100.01316.44
7.4.00.0050.01314.72
7.3.330.0050.00013.22
7.3.320.0000.00513.23
7.3.310.0000.00616.27
7.3.300.0030.00316.14
7.3.290.0140.00016.28
7.3.280.0100.00516.22
7.3.270.0100.00717.40
7.3.260.0080.01216.23
7.3.250.0100.00716.31
7.3.240.0120.00416.34
7.3.230.0080.00816.39
7.3.210.0030.01416.36
7.3.200.0120.00919.39
7.3.190.0130.01016.27
7.3.180.0090.00616.22
7.3.170.0060.01616.28
7.3.160.0070.01416.36
7.3.120.0050.01014.72
7.3.110.0140.00314.69
7.3.100.0110.00414.77
7.3.90.0130.00314.71
7.3.80.0000.01114.80
7.3.70.0030.01414.52
7.3.60.0070.00714.78
7.3.50.0070.01014.41
7.3.40.0030.01014.75
7.3.30.0070.01014.48
7.3.20.0070.01016.66
7.3.10.0040.01116.42
7.3.00.0080.00416.64
7.2.330.0100.00716.69
7.2.320.0090.01516.43
7.2.310.0130.01016.52
7.2.300.0030.01316.84
7.2.290.0070.01716.58
7.2.250.0070.01314.67
7.2.240.0030.01315.06
7.2.230.0000.01314.67
7.2.220.0030.01015.26
7.2.210.0030.01214.87
7.2.200.0080.00814.66
7.2.190.0030.01314.89
7.2.180.0030.01014.99
7.2.170.0000.00915.05
7.2.60.0050.00517.03
7.1.330.0090.00615.43
7.1.320.0090.00015.70
7.1.310.0060.00615.70
7.1.300.0030.01015.76
7.1.290.0070.00415.61
7.1.280.0000.01115.61
7.1.270.0070.01115.77
7.1.260.0040.00715.65
7.1.200.0000.01215.63
7.1.100.0080.00317.58
7.1.70.0030.00617.07
7.1.60.0120.01219.32
7.1.50.0090.01316.58
7.1.00.0070.05022.33
7.0.200.0000.00816.63
7.0.140.0030.09322.01
7.0.60.0030.07019.93
7.0.50.0070.04017.73
7.0.40.0000.08717.80
7.0.30.0100.05317.73
7.0.20.0100.04317.71
7.0.10.0070.06317.70
7.0.00.0100.04717.72
5.6.280.0000.07720.86
5.6.210.0170.02720.70
5.6.200.0000.05018.18
5.6.190.0100.07718.18
5.6.180.0100.05318.19
5.6.170.0200.03718.14
5.6.160.0030.07318.18
5.6.150.0100.07718.14
5.6.140.0030.04018.15
5.6.130.0030.08318.23
5.6.120.0070.07318.28
5.6.110.0170.06318.26
5.6.100.0000.06718.14
5.6.90.0100.03718.21
5.6.80.0070.07017.57
5.6.70.0070.06317.53
5.6.60.0100.06017.53
5.6.50.0070.07317.57
5.6.40.0170.06717.53
5.6.30.0030.06017.64
5.6.20.0070.04017.57
5.6.10.0070.07717.60
5.6.00.0130.06317.64
5.5.350.0070.04320.41
5.5.340.0100.07017.98
5.5.330.0030.07017.97
5.5.320.0070.05018.10
5.5.310.0030.07017.98
5.5.300.0030.04017.98
5.5.290.0030.08717.94
5.5.280.0130.07017.98
5.5.270.0030.08318.08
5.5.260.0000.06718.08
5.5.250.0030.07017.76
5.5.240.0170.06017.36
5.5.230.0030.08317.39
5.5.220.0070.06717.36
5.5.210.0100.07717.30
5.5.200.0070.07717.34
5.5.190.0070.05017.44
5.5.180.0100.06017.43
5.5.160.0030.06317.28
5.5.150.0130.07017.30
5.5.140.0030.08017.32
5.5.130.0070.07717.37
5.5.120.0070.07717.29
5.5.110.0130.07717.31
5.5.100.0030.04317.24
5.5.90.0030.07717.28
5.5.80.0070.08017.22
5.5.70.0100.06717.29
5.5.60.0070.07717.31
5.5.50.0170.04017.19
5.5.40.0070.06317.29
5.5.30.0070.07317.28
5.5.20.0070.04717.22
5.5.10.0130.03017.32
5.5.00.0030.08317.24
5.4.450.0070.08319.37
5.4.440.0030.04719.35
5.4.430.0070.08019.31
5.4.420.0100.05319.34
5.4.410.0230.06019.31
5.4.400.0170.06718.96
5.4.390.0100.06719.05
5.4.380.0030.07719.03
5.4.370.0030.06719.05
5.4.360.0070.08019.11
5.4.350.0100.04719.05
5.4.340.0130.04719.03
5.4.320.0030.04318.95
5.4.310.0030.07319.04
5.4.300.0070.04718.97
5.4.290.0070.08319.04
5.4.280.0100.04319.04
5.4.270.0200.03319.26
5.4.260.0030.06319.05
5.4.250.0030.06018.87
5.4.240.0070.07019.04
5.4.230.0170.06319.11
5.4.220.0070.04318.88
5.4.210.0100.07019.03
5.4.200.0030.05019.09
5.4.190.0100.03719.02
5.4.180.0030.08019.26
5.4.170.0030.07319.00
5.4.160.0030.08319.15
5.4.150.0130.05019.07
5.4.140.0100.06016.24
5.4.130.0030.04316.35
5.4.120.0100.05316.40
5.4.110.0070.08016.47
5.4.100.0000.05316.53
5.4.90.0030.03716.46
5.4.80.0070.03316.39
5.4.70.0030.03716.56
5.4.60.0000.03716.43
5.4.50.0070.03716.36
5.4.40.0030.03316.61
5.4.30.0000.03716.44
5.4.20.0000.03716.45
5.4.10.0000.03716.40
5.4.00.0030.04015.75
5.3.290.0100.07714.77
5.3.280.0100.06314.65
5.3.270.0000.07714.61
5.3.260.0100.07714.67
5.3.250.0030.05314.68
5.3.240.0000.05014.65
5.3.230.0100.03314.59
5.3.220.0030.07714.63
5.3.210.0130.06014.79
5.3.200.0030.05314.61
5.3.190.0000.04714.57
5.3.180.0030.03714.56
5.3.170.0100.04014.63
5.3.160.0000.03714.58
5.3.150.0070.03314.78
5.3.140.0070.03314.66
5.3.130.0030.03714.54
5.3.120.0030.04014.60
5.3.110.0030.03714.52
5.3.100.0030.03714.04
5.3.90.0070.03314.02
5.3.80.0000.04313.86
5.3.70.0030.04314.08
5.3.60.0030.03314.01
5.3.50.0100.04013.79
5.3.40.0030.03313.98
5.3.30.0130.02313.92
5.3.20.0070.03313.59
5.3.10.0030.03313.71
5.3.00.0000.04013.68
5.2.170.0030.02711.25
5.2.160.0030.03311.20
5.2.150.0070.02711.14
5.2.140.0000.03011.25
5.2.130.0030.02711.19
5.2.120.0030.03311.00
5.2.110.0000.03011.15
5.2.100.0070.03011.09
5.2.90.0100.02711.20
5.2.80.0100.02011.06
5.2.70.0000.03011.13
5.2.60.0000.03710.95
5.2.50.0030.03311.12
5.2.40.0000.03011.21
5.2.30.0030.03011.08
5.2.20.0030.05010.96
5.2.10.0030.02710.93
5.2.00.0070.03710.94
5.1.60.0030.0239.83
5.1.50.0030.02310.03
5.1.40.0000.0279.95
5.1.30.0030.02710.38
5.1.20.0030.04010.40
5.1.10.0070.05710.05
5.1.00.0070.05310.12
5.0.50.0000.0508.63
5.0.40.0070.0438.32
5.0.30.0030.0638.30
5.0.20.0070.0208.12
5.0.10.0070.0338.27
5.0.00.0000.0538.10
4.4.90.0000.0177.70
4.4.80.0100.0077.70
4.4.70.0000.0177.70
4.4.60.0000.0177.70
4.4.50.0070.0137.70
4.4.40.0000.0237.70
4.4.30.0000.0207.70
4.4.20.0130.0237.70
4.4.10.0000.0337.70
4.4.00.0030.0577.70
4.3.110.0030.0177.70
4.3.100.0000.0237.70
4.3.90.0070.0337.70
4.3.80.0000.0277.70
4.3.70.0030.0137.70
4.3.60.0070.0137.70
4.3.50.0070.0337.70
4.3.40.0070.0377.70
4.3.30.0000.0377.70
4.3.20.0000.0407.70
4.3.10.0030.0337.70
4.3.00.0070.0307.70

preferences:
45.43 ms | 401 KiB | 5 Q