3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { /** * An indentifier * @var string */ private $name; /** * A reference to another Foo object * @var Foo */ private $link; public function __construct($name) { $this->name = $name; } public function setLink(Foo $link){ $this->link = $link; } } // create two Foo objects: $foo = new Foo('Foo 1'); $bar = new Foo('Foo 2');

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.0070.00718.68
8.3.50.0080.01521.15
8.3.40.0120.00318.71
8.3.30.0070.00720.35
8.3.20.0060.00620.16
8.3.10.0060.00320.73
8.3.00.0080.00022.52
8.2.180.0070.01116.63
8.2.170.0090.00622.96
8.2.160.0110.00422.09
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0050.00320.67
8.2.110.0090.00020.51
8.2.100.0100.00317.78
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0050.00517.38
8.2.60.0050.00317.91
8.2.50.0030.00518.07
8.2.40.0030.00618.09
8.2.30.0070.00019.36
8.2.20.0000.00717.59
8.2.10.0030.00517.71
8.2.00.0030.00717.62
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00322.20
8.1.230.0060.00623.88
8.1.220.0050.00318.77
8.1.210.0040.00419.04
8.1.200.0040.00717.36
8.1.190.0080.00017.51
8.1.180.0040.00418.10
8.1.170.0060.00318.58
8.1.160.0040.00418.78
8.1.150.0070.00318.58
8.1.140.0080.00017.33
8.1.130.0000.00717.80
8.1.120.0070.00017.32
8.1.110.0000.00817.29
8.1.100.0000.00817.43
8.1.90.0000.00717.41
8.1.80.0030.00317.34
8.1.70.0030.00317.43
8.1.60.0030.00617.59
8.1.50.0090.00017.45
8.1.40.0040.00417.49
8.1.30.0020.00517.59
8.1.20.0040.00417.50
8.1.10.0040.00417.49
8.1.00.0030.00517.52
8.0.300.0030.00719.98
8.0.290.0000.00717.15
8.0.280.0030.00318.45
8.0.270.0030.00317.26
8.0.260.0030.00316.77
8.0.250.0030.00316.89
8.0.240.0040.00416.92
8.0.230.0030.00316.88
8.0.220.0000.00716.83
8.0.210.0030.00316.83
8.0.200.0040.00416.75
8.0.190.0040.00416.93
8.0.180.0050.00316.86
8.0.170.0000.00716.89
8.0.160.0000.00816.81
8.0.150.0000.00716.79
8.0.140.0040.00716.79
8.0.130.0050.00013.22
8.0.120.0000.00816.80
8.0.110.0040.00416.90
8.0.100.0060.00316.73
8.0.90.0040.00416.90
8.0.80.0040.01416.82
8.0.70.0070.00016.95
8.0.60.0000.00716.74
8.0.50.0050.00316.85
8.0.30.0120.01016.82
8.0.20.0140.00517.40
8.0.10.0030.00416.94
8.0.00.0120.00816.69
7.4.330.0030.00316.89
7.4.320.0060.00016.58
7.4.300.0000.00816.61
7.4.290.0030.00316.48
7.4.280.0040.00416.61
7.4.270.0030.00316.62
7.4.260.0000.00513.18
7.4.250.0000.00716.47
7.4.240.0050.00216.53
7.4.230.0030.00316.51
7.4.220.0030.01416.50
7.4.210.0070.00716.51
7.4.200.0030.00316.54
7.4.190.0000.00716.74
7.4.160.0040.01316.57
7.4.150.0030.01417.40
7.4.140.0130.00717.86
7.4.130.0100.00616.47
7.4.120.0090.00816.54
7.4.110.0080.00816.27
7.4.100.0190.00316.48
7.4.90.0190.00416.60
7.4.80.0100.01319.39
7.4.70.0120.00916.65
7.4.60.0120.00616.41
7.4.50.0000.00816.31
7.4.40.0150.00422.77
7.4.30.0060.00916.66
7.4.00.0040.00714.88
7.3.330.0060.00013.05
7.3.320.0000.00513.24
7.3.310.0030.00516.32
7.3.300.0000.00716.24
7.3.290.0040.01116.29
7.3.280.0100.00816.20
7.3.270.0160.00017.40
7.3.260.0090.01018.24
7.3.250.0120.00916.33
7.3.240.0130.00716.18
7.3.230.0130.01016.41
7.3.210.0100.00716.56
7.3.200.0120.01219.39
7.3.190.0030.01416.36
7.3.180.0090.01116.22
7.3.170.0100.00716.38
7.3.160.0000.01516.17
7.3.120.0060.01014.45
7.2.330.0060.01216.57
7.2.320.0110.00616.75
7.2.310.0100.00716.64
7.2.300.0100.01016.68
7.2.290.0110.00816.66
7.2.110.0170.00316.57
7.2.100.0130.00616.14
7.2.90.0090.00916.53
7.2.80.0150.00316.76
7.2.70.0150.00316.61
7.2.60.0040.01217.05
7.2.50.0070.01016.95
7.2.40.0090.00616.78
7.2.30.0090.01316.67
7.2.20.0170.00316.62
7.2.10.0140.00716.41
7.2.00.0030.01016.79
7.1.230.0090.00615.65
7.1.220.0110.00615.73
7.1.210.0060.00915.66
7.1.200.0070.00715.45
7.1.190.0140.00315.54
7.1.180.0110.00415.38
7.1.170.0080.00815.73
7.1.160.0060.00615.56
7.1.150.0110.00415.22
7.1.140.0040.00915.75
7.1.130.0140.00315.38
7.1.120.0130.00315.66
7.1.110.0080.00815.76
7.1.100.0100.00315.78
7.1.90.0120.00015.69
7.1.80.0130.00315.63
7.1.70.0020.01316.29
7.1.60.0040.01517.59
7.1.50.0210.00625.23
7.1.40.0060.00915.75
7.1.30.0030.01015.80
7.1.20.0040.00815.89
7.1.10.0040.00715.59
7.1.00.0050.02719.00
7.0.310.0110.00715.34
7.0.300.0170.00015.27
7.0.290.0060.01015.38
7.0.280.0120.00415.19
7.0.270.0060.01215.39
7.0.260.0050.00815.31
7.0.250.0060.00615.03
7.0.240.0130.00315.41
7.0.230.0100.00715.55
7.0.220.0130.00015.39
7.0.210.0060.00615.36
7.0.200.0070.00616.03
7.0.190.0120.00315.34
7.0.180.0070.00715.40
7.0.170.0100.00315.46
7.0.160.0070.00715.33
7.0.150.0100.00015.34
7.0.140.0070.03818.68
7.0.130.0060.00615.39
7.0.120.0070.00715.46
7.0.110.0030.01015.38
7.0.100.0080.03317.60
7.0.90.0070.04017.66
7.0.80.0070.04317.74
7.0.70.0110.04017.50
7.0.60.0080.02717.55
7.0.50.0100.03017.92
7.0.40.0110.04016.71
7.0.30.0020.03216.81
7.0.20.0080.04616.70
7.0.10.0130.02316.70
7.0.00.0080.02516.72
5.6.380.0150.00414.52
5.6.370.0110.01114.23
5.6.360.0140.00314.42
5.6.350.0150.00314.30
5.6.340.0150.00214.25
5.6.330.0110.00314.74
5.6.320.0080.00414.64
5.6.310.0040.00814.61
5.6.300.0130.00014.29
5.6.290.0060.01014.30
5.6.280.0050.03817.65
5.6.270.0030.00914.66
5.6.260.0060.00914.36
5.6.250.0050.02817.57
5.6.240.0020.04617.47
5.6.230.0070.04517.52
5.6.220.0150.03717.54
5.6.210.0100.03917.54
5.6.200.0100.04317.73
5.6.190.0100.03817.72
5.6.180.0080.04217.80
5.6.170.0110.04017.84
5.6.160.0100.04017.74
5.6.150.0050.02817.59
5.6.140.0070.04417.62
5.6.130.0040.04417.61
5.6.120.0070.04317.73
5.6.110.0090.04317.64
5.6.100.0060.03117.70
5.6.90.0050.04817.64
5.6.80.0050.04417.25
5.6.70.0160.01617.37
5.6.60.0120.01817.46
5.6.50.0030.03717.31
5.6.40.0020.02717.26
5.6.30.0100.03717.33
5.6.20.0080.03717.39
5.6.10.0070.04517.36
5.6.00.0020.02517.34
5.5.380.0030.02816.59
5.5.370.0050.04016.57
5.5.360.0100.04116.60
5.5.350.0100.03816.61
5.5.340.0100.04016.84
5.5.330.0070.04316.83
5.5.320.0030.04316.79
5.5.310.0080.04216.77
5.5.300.0030.04516.84
5.5.290.0100.03716.83
5.5.280.0040.04016.85
5.5.270.0080.04116.84
5.5.260.0060.03216.79
5.5.250.0070.02816.75
5.5.240.0050.03816.52
5.5.230.0070.04116.53
5.5.220.0050.04216.48
5.5.210.0130.03816.45
5.5.200.0050.03916.49
5.5.190.0100.02016.51
5.5.180.0060.04516.51
5.5.170.0040.00714.38
5.5.160.0070.04116.51
5.5.150.0100.02516.44
5.5.140.0130.04016.53
5.5.130.0050.02516.47
5.5.120.0030.04516.52
5.5.110.0050.04216.52
5.5.100.0050.03716.43
5.5.90.0070.03616.41
5.5.80.0050.02716.43
5.5.70.0080.03916.41
5.5.60.0090.02716.47
5.5.50.0030.04116.36
5.5.40.0030.04316.36
5.5.30.0070.04916.39
5.5.20.0080.03716.44
5.5.10.0050.04216.40
5.5.00.0070.04016.44
5.4.450.0080.04016.06
5.4.440.0130.03815.99
5.4.430.0040.04316.13
5.4.420.0100.03916.08
5.4.410.0130.03515.95
5.4.400.0050.04415.96
5.4.390.0060.04016.02
5.4.380.0100.02715.97
5.4.370.0030.02515.98
5.4.360.0080.02315.91
5.4.350.0050.02515.97
5.4.340.0050.02516.02
5.4.330.0080.00412.79
5.4.320.0080.03215.96
5.4.310.0050.03315.85
5.4.300.0050.03915.89
5.4.290.0110.02315.84
5.4.280.0030.04315.91
5.4.270.0050.02415.92
5.4.260.0040.02615.99
5.4.250.0030.04315.91
5.4.240.0080.02315.97
5.4.230.0020.04515.80
5.4.220.0040.04415.82
5.4.210.0030.04615.96
5.4.200.0050.02215.81
5.4.190.0130.03215.98
5.4.180.0020.04515.82
5.4.170.0080.02515.84
5.4.160.0050.02315.83
5.4.150.0080.02315.96
5.4.140.0070.02414.61
5.4.130.0030.02514.64
5.4.120.0000.03314.60
5.4.110.0040.03714.61
5.4.100.0030.02414.65
5.4.90.0050.03814.63
5.4.80.0030.03214.63
5.4.70.0070.03714.58
5.4.60.0050.02814.63
5.4.50.0110.03014.61
5.4.40.0030.03814.63
5.4.30.0120.03414.57
5.4.20.0090.03614.59
5.4.10.0040.03414.62
5.4.00.0050.03314.28
5.3.290.0070.04413.76
5.3.280.0120.03313.68
5.3.270.0110.03513.69
5.3.260.0080.03813.68
5.3.250.0030.03913.73
5.3.240.0090.02213.74
5.3.230.0050.04413.70
5.3.220.0100.03513.71
5.3.210.0120.03413.74
5.3.200.0110.03313.69
5.3.190.0050.02113.65
5.3.180.0080.02613.69
5.3.170.0120.02813.64
5.3.160.0060.03813.67
5.3.150.0070.03913.68
5.3.140.0060.04113.74
5.3.130.0080.03813.63
5.3.120.0030.02213.71
5.3.110.0100.03713.68
5.3.100.0050.03413.45
5.3.90.0040.03013.39
5.3.80.0120.03713.43
5.3.70.0080.03913.45
5.3.60.0070.03613.35
5.3.50.0040.03713.40
5.3.40.0070.02513.33
5.3.30.0050.03113.41
5.3.20.0100.02813.29
5.3.10.0020.04313.22
5.3.00.0080.03813.26
5.2.170.0080.01811.92
5.2.160.0050.03212.02
5.2.150.0040.01712.01
5.2.140.0050.02711.96
5.2.130.0040.02711.91
5.2.120.0050.02311.91
5.2.110.0040.03312.01
5.2.100.0070.02711.88
5.2.90.0050.03511.96
5.2.80.0040.03611.94
5.2.70.0060.03411.96
5.2.60.0070.02811.95
5.2.50.0050.02511.92
5.2.40.0060.03111.85
5.2.30.0080.02711.91
5.2.20.0060.01811.87
5.2.10.0030.01711.82
5.2.00.0040.01611.77
5.1.60.0030.01411.63
5.1.50.0050.01711.63
5.1.40.0020.01511.63
5.1.30.0050.01711.63
5.1.20.0060.01311.63
5.1.10.0020.01511.63
5.1.00.0040.01711.63
5.0.50.0030.01111.63
5.0.40.0000.01311.63
5.0.30.0030.01711.63
5.0.20.0020.02311.63
5.0.10.0030.01211.63
5.0.00.0000.02111.63
4.4.90.0050.00811.63
4.4.80.0040.01811.63
4.4.70.0000.01411.63
4.4.60.0000.01211.63
4.4.50.0020.01411.63
4.4.40.0020.01511.63
4.4.30.0020.00811.63
4.4.20.0000.01211.63
4.4.10.0030.00811.63
4.4.00.0050.01211.63
4.3.110.0020.01011.63
4.3.100.0030.00811.63
4.3.90.0020.00711.63
4.3.80.0050.01011.63
4.3.70.0060.00711.63
4.3.60.0030.00911.63
4.3.50.0010.01111.63
4.3.40.0030.01411.63
4.3.30.0030.00911.63
4.3.20.0020.01011.63
4.3.10.0010.01111.63
4.3.00.0050.01011.63

preferences:
67.83 ms | 401 KiB | 5 Q