3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $cache = []; } function foo() { $t = new stdClass(); Foo::$cache[] = $t; $t->foo = $t; $tt = unserialize(serialize($t)); } foo(); gc_collect_cycles();

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.00718.06
8.3.50.0100.01121.94
8.3.40.0040.01118.67
8.3.30.0030.01019.01
8.3.20.0040.00420.19
8.3.10.0040.00423.66
8.3.00.0040.00719.18
8.2.180.0100.00716.37
8.2.170.0100.00722.96
8.2.160.0130.00020.32
8.2.150.0070.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.38
8.2.110.0070.00720.35
8.2.100.0120.00017.91
8.2.90.0050.00318.34
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0070.00817.67
8.2.50.0060.00318.07
8.2.40.0030.00520.07
8.2.30.0070.00018.16
8.2.20.0050.00317.75
8.2.10.0070.00018.09
8.2.00.0030.00619.37
8.1.280.0070.00725.92
8.1.270.0040.00423.83
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00022.01
8.1.230.0100.00020.89
8.1.220.0040.00417.74
8.1.210.0000.00818.85
8.1.200.0040.00717.35
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0040.00418.24
8.1.160.0070.00021.93
8.1.150.0040.00418.55
8.1.140.0080.00017.39
8.1.130.0070.00017.73
8.1.120.0040.00417.31
8.1.110.0000.00717.42
8.1.100.0040.00417.44
8.1.90.0000.00717.29
8.1.80.0000.00717.46
8.1.70.0030.00317.35
8.1.60.0040.00417.48
8.1.50.0000.00817.56
8.1.40.0030.00617.43
8.1.30.0090.00017.56
8.1.20.0000.00817.70
8.1.10.0040.00417.48
8.1.00.0000.00817.40
8.0.300.0080.00019.96
8.0.290.0090.00016.75
8.0.280.0030.00318.37
8.0.270.0050.00217.05
8.0.260.0000.00717.11
8.0.250.0000.00716.84
8.0.240.0070.00016.94
8.0.230.0000.00716.86
8.0.220.0070.00016.81
8.0.210.0000.00616.95
8.0.200.0000.00616.89
8.0.190.0000.00816.85
8.0.180.0040.00416.92
8.0.170.0000.00816.96
8.0.160.0000.00717.00
8.0.150.0070.00316.86
8.0.140.0080.00416.86
8.0.130.0000.00613.30
8.0.120.0000.00816.91
8.0.110.0040.00416.85
8.0.100.0050.00216.75
8.0.90.0040.00416.93
8.0.80.0100.00616.88
8.0.70.0040.00416.76
8.0.60.0030.00516.71
8.0.50.0070.00016.91
8.0.30.0100.00917.13
8.0.20.0150.00517.40
8.0.10.0020.00517.02
8.0.00.0050.01216.66
7.4.330.0020.00215.00
7.4.320.0040.00416.46
7.4.300.0000.00616.55
7.4.290.0040.00416.64
7.4.280.0000.00816.48
7.4.270.0000.00816.65
7.4.260.0030.00316.50
7.4.250.0000.00816.37
7.4.240.0040.00416.56
7.4.230.0070.00016.49
7.4.220.0090.00916.50
7.4.210.0080.00516.38
7.4.200.0070.00016.39
7.4.160.0060.00916.42
7.4.150.0160.00317.40
7.4.140.0100.01017.86
7.4.130.0100.00616.56
7.4.120.0100.00916.55
7.4.110.0100.01016.36
7.4.100.0060.01516.40
7.4.90.0040.01216.40
7.4.80.0140.00319.39
7.4.70.0070.01516.43
7.4.60.0120.00316.46
7.4.50.0000.00816.39
7.4.40.0060.00916.50
7.4.30.0030.01416.47
7.4.00.0080.00714.85
7.3.330.0020.00213.39
7.3.320.0060.00013.24
7.3.310.0000.00716.17
7.3.300.0030.00316.33
7.3.290.0030.01016.28
7.3.280.0060.01116.28
7.3.270.0090.00817.40
7.3.260.0110.00616.48
7.3.250.0140.00616.51
7.3.240.0100.00716.36
7.3.230.0130.00316.46
7.3.210.0130.00316.43
7.3.200.0030.01619.39
7.3.190.0120.00516.50
7.3.180.0040.01116.43
7.3.170.0070.01016.52
7.3.160.0100.01016.44
7.3.120.0080.01014.90
7.3.110.0070.00914.88
7.3.100.0070.00814.97
7.3.90.0080.00614.89
7.3.80.0000.01414.81
7.3.70.0030.01014.68
7.3.60.0080.00814.94
7.3.50.0050.01114.77
7.3.40.0000.01314.81
7.3.30.0070.00814.86
7.3.20.0020.01116.70
7.3.10.0060.00616.60
7.3.00.0040.01216.50
7.2.330.0100.01316.38
7.2.320.0060.01716.61
7.2.310.0130.00616.59
7.2.300.0070.01116.50
7.2.290.0120.00916.44
7.2.250.0060.01214.90
7.2.240.0050.01015.04
7.2.230.0050.01115.12
7.2.220.0050.00915.09
7.2.210.0030.01214.88
7.2.200.0050.01114.93
7.2.190.0090.00715.00
7.2.180.0060.00715.11
7.2.170.0060.00515.02
7.2.160.0080.00315.14
7.2.150.0030.01016.96
7.2.140.0100.00616.96
7.2.130.0070.01216.76
7.2.120.0090.00816.56
7.2.110.0080.00916.72
7.2.100.0110.00516.71
7.2.90.0050.00916.61
7.2.80.0080.00516.63
7.2.70.0100.00616.88
7.2.60.0070.01116.83
7.2.50.0070.00816.76
7.2.40.0090.00716.76
7.2.30.0100.00616.74
7.2.20.0100.00516.84
7.2.10.0110.00516.66
7.2.00.0110.00417.70
7.1.330.0040.01115.67
7.1.320.0060.00515.91
7.1.310.0090.00315.96
7.1.300.0060.00615.68
7.1.290.0030.00615.77
7.1.280.0050.00715.60
7.1.270.0050.01015.67
7.1.260.0040.01015.71
7.1.250.0100.00715.69
7.1.240.0120.00615.34
7.1.230.0140.00315.48
7.1.220.0100.00715.25
7.1.210.0070.00715.52
7.1.200.0040.00915.67
7.1.190.0080.00615.47
7.1.180.0090.00915.58
7.1.170.0120.00415.54
7.1.160.0130.00615.33
7.1.150.0040.01115.67
7.1.140.0070.00715.68
7.1.130.0040.01115.36
7.1.120.0120.00615.34
7.1.110.0140.00315.29
7.1.100.0060.00916.87
7.1.90.0090.00615.50
7.1.80.0070.01015.41
7.1.70.0070.00416.42
7.1.60.0120.00716.28
7.1.50.0110.01016.30
7.1.40.0130.00315.24
7.1.30.0070.01115.59
7.1.20.0140.00015.17
7.1.10.0100.00715.61
7.1.00.0060.04318.86
7.0.330.0100.01014.98
7.0.320.0090.00615.40
7.0.310.0090.00615.25
7.0.300.0090.00315.24
7.0.290.0250.00314.91
7.0.280.0030.01214.80
7.0.270.0080.00814.91
7.0.260.0050.00515.39
7.0.250.0030.01015.32
7.0.240.0170.00014.91
7.0.230.0070.01215.29
7.0.220.0120.00315.37
7.0.210.0060.00915.28
7.0.200.0090.00815.98
7.0.190.0130.00315.42
7.0.180.0130.00315.20
7.0.170.0070.01015.31
7.0.160.0090.00615.29
7.0.150.0140.00015.32
7.0.140.0120.03718.44
7.0.130.0090.00615.05
7.0.120.0060.01215.21
7.0.110.0130.00315.04
7.0.100.0070.01014.95
7.0.90.0130.00314.85
7.0.80.0120.00814.79
7.0.70.0110.00815.10
7.0.60.0090.03917.61
7.0.50.0070.02716.43
7.0.40.0030.02916.62
7.0.30.0180.03916.66
7.0.20.0220.03816.72
7.0.10.0180.02316.75
7.0.00.0120.03516.76
5.6.380.0060.00614.05
5.6.370.0000.02113.95
5.6.360.0060.01514.01
5.6.350.0110.00614.67
5.6.340.0140.00714.33
5.6.330.0000.01613.90
5.6.320.0120.00314.09
5.6.310.0000.01314.29
5.6.300.0040.00714.07
5.6.290.0090.00614.20
5.6.280.0080.03617.60
5.6.270.0000.01514.19
5.6.260.0110.00714.51
5.6.250.0120.00614.08
5.6.240.0030.00714.08
5.6.230.0070.01014.61
5.6.220.0090.00913.93
5.6.210.0050.02517.38
5.6.200.0110.02116.21
5.6.190.0130.03817.33
5.6.180.0050.02617.57
5.6.170.0170.02617.26
5.6.160.0100.03717.28
5.6.150.0080.04116.30
5.6.140.0130.03316.18
5.6.130.0070.02916.26
5.6.120.0050.02617.43
5.6.110.0090.03317.62
5.6.100.0140.04217.48
5.6.90.0080.03517.67
5.6.80.0100.04317.13
5.6.70.0180.04217.25
5.6.60.0100.00614.15
5.6.50.0060.00313.94
5.6.40.0070.01014.08
5.6.30.0040.01314.13
5.6.20.0060.01114.43
5.6.10.0080.01214.34
5.6.00.0060.01314.28
5.5.380.0080.00411.15
5.5.370.0040.01111.13
5.5.360.0050.00511.13
5.5.350.0020.02815.75
5.5.340.0060.02114.57
5.5.330.0130.03515.80
5.5.320.0160.03015.85
5.5.310.0110.02215.70
5.5.300.0030.03114.67
5.5.290.0070.04214.54
5.5.280.0050.02616.05
5.5.270.0120.04016.10
5.5.260.0050.02316.05
5.5.250.0050.04616.04
5.5.240.0000.04615.75
5.5.230.0000.01111.02
5.5.220.0030.00611.04
5.5.210.0050.00210.91
5.5.200.0090.00311.00
5.5.190.0030.01010.90
5.5.180.0030.01010.92
5.5.170.0000.01311.36
5.5.160.0060.00611.04
5.5.150.0040.00811.27
5.5.140.0060.00611.05
5.5.130.0070.00710.93
5.5.120.0000.01011.09
5.5.110.0060.00311.04
5.5.100.0060.00611.28
5.5.90.0080.00311.25
5.5.80.0040.00410.90
5.5.70.0000.01011.04
5.5.60.0100.00011.20
5.5.50.0080.00311.21
5.5.40.0070.00011.34
5.5.30.0000.00611.21
5.5.20.0030.00911.29
5.5.10.0030.00311.11
5.5.00.0000.00610.90
5.4.450.0210.02127.33
5.4.440.0220.02424.07
5.4.430.0380.02522.29
5.4.420.0180.02622.26
5.4.410.0130.02322.26
5.4.400.0150.02522.25
5.4.390.0130.03121.14
5.4.380.0150.02614.87
5.4.370.0100.03614.79
5.4.360.0230.02814.73
5.4.350.0140.02614.83
5.4.340.0100.03114.71
5.4.330.0060.00810.90
5.4.320.0080.02411.70
5.4.310.0070.02111.70
5.4.300.0030.02611.83
5.4.290.0050.01911.75
5.4.280.0050.02211.65
5.4.270.0060.02011.67
5.4.260.0070.01911.74
5.4.250.0050.02211.65
5.4.240.0040.02311.72
5.4.230.0030.02311.68
5.4.220.0040.02011.64
5.4.210.0060.02611.64
5.4.200.0050.02711.65
5.4.190.0060.02711.71
5.4.180.0030.02311.64
5.4.170.0040.02411.69
5.4.160.0030.02211.64
5.4.150.0060.01911.69
5.4.140.0020.02911.48
5.4.130.0050.01911.53
5.4.120.0040.02011.59
5.4.110.0040.02011.54
5.4.100.0070.02011.46
5.4.90.0040.02111.48
5.4.80.0040.02411.53
5.4.70.0040.02411.52
5.4.60.0040.02211.47
5.4.50.0050.02511.46
5.4.40.0050.02211.45
5.4.30.0060.02211.45
5.4.20.0050.01911.45
5.4.10.0060.02611.45
5.4.00.0040.02311.25
5.3.290.0100.02611.85
5.3.280.0080.01911.80
5.3.270.0070.02111.81
5.3.260.0050.02611.81
5.3.250.0070.02111.81
5.3.240.0040.02411.81
5.3.230.0080.02111.80
5.3.220.0040.02211.79
5.3.210.0030.02311.79
5.3.200.0110.01711.79
5.3.190.0070.02211.79
5.3.180.0040.02111.79
5.3.170.0070.01911.78
5.3.160.0050.02111.79
5.3.150.0050.02511.78
5.3.140.0060.02611.78
5.3.130.0060.02311.78
5.3.120.0060.02311.78
5.3.110.0010.02711.78
5.3.100.0090.02211.51
5.3.90.0070.02111.50
5.3.80.0050.02311.49
5.3.70.0060.02711.49
5.3.60.0090.02311.49
5.3.50.0050.02111.46
5.3.40.0060.02111.46
5.3.30.0040.02211.44
5.3.20.0040.02511.33
5.3.10.0070.01811.31
5.3.00.0050.02411.30
5.2.170.0040.02010.06
5.2.160.0040.01710.06
5.2.150.0060.01910.05
5.2.140.0050.01810.05
5.2.130.0060.01510.04
5.2.120.0030.01910.04
5.2.110.0040.01710.04
5.2.100.0060.01610.04
5.2.90.0050.01510.04
5.2.80.0040.01610.03
5.2.70.0070.01410.04
5.2.60.0080.02010.01
5.2.50.0040.01710.00
5.2.40.0060.0219.98
5.2.30.0070.0169.97
5.2.20.0030.0179.97
5.2.10.0040.0179.92
5.2.00.0050.0159.85
5.1.60.0020.0149.49
5.1.50.0020.0179.49
5.1.40.0030.0189.48
5.1.30.0010.0169.66
5.1.20.0040.0159.67
5.1.10.0010.0179.53
5.1.00.0020.0189.53
5.0.50.0030.0148.77
5.0.40.0050.0138.70
5.0.30.0050.0198.60
5.0.20.0070.0078.59
5.0.10.0050.0128.58
5.0.00.0030.0188.57
4.4.90.0020.0107.84
4.4.80.0020.0137.83
4.4.70.0030.0107.83
4.4.60.0030.0127.83
4.4.50.0020.0097.83
4.4.40.0040.0137.80
4.4.30.0040.0127.83
4.4.20.0050.0107.87
4.4.10.0020.0127.87
4.4.00.0010.0197.83
4.3.110.0020.0117.78
4.3.100.0030.0097.78
4.3.90.0030.0117.77
4.3.80.0030.0177.74
4.3.70.0050.0107.77
4.3.60.0060.0107.76
4.3.50.0020.0107.76
4.3.40.0030.0137.72
4.3.30.0020.0097.10
4.3.20.0030.0107.09
4.3.10.0010.0157.07
4.3.00.0100.01012.62

preferences:
42.4 ms | 401 KiB | 5 Q