3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Los_Angeles'); class Test { public $previous, $next = NULL; public function __clone() { $this->previous != NULL ? $this->previous = clone $this->previous : $this->previous = NULL; $this->next != NULL ? $this->next = clone $this->next : $this->next = NULL; } public function __toString() { return '[' . ($this->previous != NULL ? '<' : '-') . ' ' . ($this->next != NULL ? '>' : '-') . ']'; } } // Create some test objects $a = new Test(); $b = new Test(); // Link them together $a->next =& $b; $b->previous =& $a; // Clone and print echo "a before cloning:\na: " . $a . "\n"; $b = clone $a; echo "These two should not look the same:\na: " . $a . "\nb: " . $clone . "\n";

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.70.0170.02334.25
8.3.60.0280.02134.32
8.3.50.0320.01734.61
8.3.40.0320.01135.79
8.3.30.0250.01436.08
8.3.20.0140.00737.21
8.3.10.0140.01438.73
8.3.00.0120.00835.06
8.2.190.0230.01728.75
8.2.180.0350.00729.13
8.2.170.0260.00331.21
8.2.160.0210.00732.57
8.2.150.0080.00831.10
8.2.140.0170.00032.60
8.2.130.0130.00332.82
8.2.120.0220.01032.83
8.2.110.0250.00532.12
8.2.100.0240.01030.90
8.2.90.0150.01130.62
8.2.80.0140.00530.62
8.2.70.0130.00730.45
8.2.60.0120.00830.74
8.2.50.0200.00030.46
8.2.40.0120.00630.69
8.2.30.0060.01031.44
8.2.20.0170.00230.52
8.2.10.0140.00330.87
8.2.00.0100.00830.64
8.1.280.0280.00729.91
8.1.270.0070.00735.82
8.1.260.0110.00432.83
8.1.250.0080.00834.64
8.1.240.0170.00332.83
8.1.230.0160.00632.32
8.1.220.0150.00230.65
8.1.210.0150.00331.91
8.1.200.0140.00430.56
8.1.190.0120.00331.13
8.1.180.0160.00330.35
8.1.170.0140.00631.14
8.1.160.0160.00232.84
8.1.150.0090.01032.39
8.1.140.0080.01030.63
8.1.130.0130.00330.80
8.1.120.0140.00330.52
8.1.110.0140.00330.57
8.1.100.0130.00430.63
8.1.90.0150.00230.64
8.1.80.0120.00630.66
8.1.70.0120.00330.79
8.1.60.0120.00630.63
8.1.50.0270.00430.75
8.1.40.0190.00730.76
8.1.30.0170.00330.78
8.1.20.0120.00830.65
8.1.10.0160.00230.75
8.1.00.0130.00630.29
8.0.300.0140.00530.89
8.0.290.0160.00329.27
8.0.280.0110.00930.16
8.0.270.0240.01029.52
8.0.260.0210.00229.68
8.0.250.0110.00829.40
8.0.240.0110.00629.42
8.0.230.0120.00729.46
8.0.220.0170.01229.36
8.0.210.0130.00429.34
8.0.200.0280.00029.33
8.0.190.0190.00529.53
8.0.180.0200.00729.41
8.0.170.0120.00829.38
8.0.160.0130.00529.41
8.0.150.0220.00629.23
8.0.140.0260.00229.28
8.0.130.0210.00428.09
8.0.120.0180.00329.17
8.0.110.0140.00729.16
8.0.100.0160.00529.04
8.0.90.0150.00329.06
8.0.80.0160.00929.10
8.0.70.0090.01129.20
8.0.60.0150.00429.23
8.0.50.0150.00529.15
8.0.30.0180.00829.27
8.0.20.0180.00829.17
8.0.10.0120.00829.30
8.0.00.0120.01129.93
7.4.330.0130.00425.60
7.4.320.0110.00629.51
7.4.300.0100.00330.01
7.4.290.0100.00530.12
7.4.280.0110.00829.52
7.4.270.0080.00630.04
7.4.260.0150.00629.25
7.4.250.0150.00529.27
7.4.240.0130.00629.49
7.4.230.0190.00829.34
7.4.220.0140.00729.41
7.4.210.0160.00629.23
7.4.200.0130.00429.63
7.4.190.0170.00229.38
7.4.180.0120.00629.29
7.4.160.0130.00929.55
7.4.150.0150.00729.54
7.4.140.0170.00829.14
7.4.130.0180.00529.05
7.4.120.0170.01029.10
7.4.110.0190.00529.13
7.4.100.0160.00829.18
7.4.90.0170.00629.21
7.4.80.0150.00929.15
7.4.70.0180.00429.10
7.4.60.0180.00829.19
7.4.50.0160.00729.13
7.4.40.0180.00829.12
7.4.30.0180.00929.02
7.4.20.0180.01229.07
7.4.10.0200.01328.99
7.4.00.0180.01328.47
7.3.330.0130.00728.12
7.3.320.0140.00428.18
7.3.310.0150.00529.16
7.3.300.0160.00229.12
7.3.290.0150.01129.02
7.3.280.0230.00629.05
7.3.270.0160.00729.12
7.3.260.0170.00629.07
7.3.250.0150.00529.21
7.3.240.0170.00829.06
7.3.230.0170.00728.92
7.3.220.0200.00729.05
7.3.210.0180.00829.12
7.3.200.0160.00629.20
7.3.190.0170.01129.16
7.3.180.0180.00729.07
7.3.170.0160.00829.13
7.3.160.0140.01029.07
7.3.150.0200.01229.02
7.3.140.0170.01229.00
7.3.130.0220.00929.07
7.3.120.0190.01328.46
7.3.110.0200.01228.45
7.3.100.0200.01128.40
7.3.90.0200.01028.53
7.3.80.0190.01028.41
7.3.70.0170.01428.46
7.3.60.0170.01328.50
7.3.50.0180.01328.49
7.3.40.0190.01128.46
7.3.30.0190.01128.43
7.3.20.0190.01028.80
7.3.10.0210.01128.77
7.3.00.0220.01328.73
7.2.340.0070.00928.97
7.2.330.0200.00528.24
7.2.320.0240.00328.22
7.2.310.0180.00528.18
7.2.300.0180.00528.31
7.2.290.0220.00828.21
7.2.280.0220.01228.12
7.2.270.0180.01028.15
7.2.260.0180.01228.18
7.2.250.0180.01427.63
7.2.240.0190.01127.61
7.2.230.0170.01327.60
7.2.220.0160.01327.56
7.2.210.0190.01127.63
7.2.200.0180.01027.60
7.2.190.0180.01227.62
7.2.180.0170.01227.57
7.2.170.0180.01027.56
7.2.160.0190.01127.78
7.2.150.0200.01328.30
7.2.140.0260.01228.17
7.2.130.0210.01428.17
7.2.120.0210.01328.13
7.2.110.0240.00928.11
7.2.100.0190.01328.16
7.2.90.0270.01028.18
7.2.80.0210.01328.09
7.2.70.0200.01328.15
7.2.60.0200.01128.20
7.2.50.0220.01028.18
7.2.40.0220.01028.17
7.2.30.0210.01328.17
7.2.20.0230.01228.14
7.2.10.0250.01128.28
7.2.00.0230.01028.24
7.1.330.0210.01527.45
7.1.320.0200.01227.47
7.1.310.0300.00927.46
7.1.300.0210.01227.47
7.1.290.0190.01327.39
7.1.280.0210.01227.41
7.1.270.0260.01227.39
7.1.260.0230.01327.42
7.1.250.0250.01127.31
7.1.240.0230.01227.34
7.1.230.0230.01227.32
7.1.220.0260.01227.30
7.1.210.0260.01127.35
7.1.200.0230.01027.31
7.1.190.0230.00927.32
7.1.180.0230.01127.29
7.1.170.0230.01027.42
7.1.160.0220.01227.38
7.1.150.0230.01227.38
7.1.140.0210.01227.39
7.1.130.0230.01127.31
7.1.120.0210.01227.38
7.1.110.0210.01227.38
7.1.100.0250.01027.34
7.1.90.0230.01327.37
7.1.80.0210.01427.35
7.1.70.0250.00827.46
7.1.60.0250.01327.49
7.1.50.0240.01127.49
7.1.40.0250.01227.42
7.1.30.0220.01227.46
7.1.20.0220.01327.45
7.1.10.0240.01127.40
7.1.00.0220.01227.35
7.0.330.0230.01527.40
7.0.320.0240.01127.41
7.0.310.0250.01027.44
7.0.300.0220.01327.42
7.0.290.0250.01227.36
7.0.280.0230.01327.42
7.0.270.0230.01327.35
7.0.260.0220.01427.43
7.0.250.0230.01127.50
7.0.240.0210.01327.53
7.0.230.0270.01027.57
7.0.220.0210.01427.48
7.0.210.0230.01527.44
7.0.200.0230.01227.51
7.0.190.0250.01027.61
7.0.180.0270.01227.51
7.0.170.0250.01227.58
7.0.160.0240.01227.50
7.0.150.0250.01127.52
7.0.140.0290.01127.58
7.0.130.0220.01127.54
7.0.120.0260.01027.69
7.0.110.0240.01227.68
7.0.100.0260.01027.67
7.0.90.0220.01227.63
7.0.80.0230.01127.63
7.0.70.0260.01227.59
7.0.60.0260.01227.57
7.0.50.0330.01127.63
7.0.40.0240.01227.30
7.0.30.0220.01327.25
7.0.20.0270.01127.16
7.0.10.0250.01027.21
7.0.00.0230.01027.21
5.6.400.0230.01830.92
5.6.390.0260.01730.98
5.6.380.0290.01730.97
5.6.370.0260.01530.97
5.6.360.0230.01831.02
5.6.350.0270.01830.93
5.6.340.0250.01630.97
5.6.330.0270.01630.97
5.6.320.0260.01431.05
5.6.310.0250.01731.02
5.6.300.0250.01731.36
5.6.290.0260.01631.31
5.6.280.0240.02031.41
5.6.270.0240.02031.40
5.6.260.0240.01931.40
5.6.250.0220.01931.42
5.6.240.0230.01931.35
5.6.230.0270.01731.34
5.6.220.0240.02031.40
5.6.210.0220.02031.36
5.6.200.0230.02131.45
5.6.190.0270.01431.42
5.6.180.0260.01831.39
5.6.170.0250.01631.38
5.6.160.0230.01931.46
5.6.150.0240.01831.41
5.6.140.0230.01931.46
5.6.130.0240.01731.37
5.6.120.0260.01631.40
5.6.110.0260.01631.38
5.6.100.0280.01831.30
5.6.90.0250.02031.36
5.6.80.0230.01931.32
5.6.70.0260.01731.22
5.6.60.0220.02131.23
5.6.50.0240.02131.25
5.6.40.0280.01731.21
5.6.30.0270.01731.25
5.6.20.0260.01831.26
5.6.10.0270.01831.18
5.6.00.0240.01731.28
5.5.380.0280.01931.10
5.5.370.0260.02031.05
5.5.360.0280.01831.10
5.5.350.0280.01831.06
5.5.340.0300.01731.10
5.5.330.0280.01531.10
5.5.320.0270.01931.09
5.5.310.0290.01731.10
5.5.300.0260.02031.06
5.5.290.0270.01731.03
5.5.280.0270.01731.02
5.5.270.0280.01831.08
5.5.260.0280.02031.03
5.5.250.0260.01831.06
5.5.240.0240.01931.00
5.5.230.0260.01831.06
5.5.220.0240.02030.95
5.5.210.0240.02231.03
5.5.200.0270.01930.95
5.5.190.0230.02230.94
5.5.180.0240.01930.95
5.5.170.0280.01930.80
5.5.160.0280.01830.99
5.5.150.0250.02330.98
5.5.140.0250.01930.96
5.5.130.0230.02230.94
5.5.120.0270.01830.91
5.5.110.0250.02030.91
5.5.100.0230.01930.92
5.5.90.0250.01830.98
5.5.80.0260.02031.04
5.5.70.0240.02230.93
5.5.60.0260.01931.00
5.5.50.0250.01830.96
5.5.40.0240.01930.96
5.5.30.0240.02031.02
5.5.20.0270.01730.96
5.5.10.0250.02130.97
5.5.00.0270.01630.96
5.4.450.0230.01728.37
5.4.440.0230.01728.38
5.4.430.0220.01728.39
5.4.420.0230.01528.36
5.4.410.0240.01528.38
5.4.400.0230.01528.28
5.4.390.0220.01828.31
5.4.380.0220.01728.28
5.4.370.0230.01728.29
5.4.360.0240.01828.27
5.4.350.0220.01828.26
5.4.340.0220.01928.29
5.4.330.0250.01427.77
5.4.320.0240.01728.28
5.4.310.0260.01428.25
5.4.300.0230.01728.29
5.4.290.0220.01628.25
5.4.280.0200.01828.30
5.4.270.0240.01628.28
5.4.260.0230.01428.27
5.4.250.0240.01528.27
5.4.240.0210.01828.30
5.4.230.0230.01728.25
5.4.220.0240.01628.23
5.4.210.0210.01728.24
5.4.200.0200.01928.22
5.4.190.0210.01828.17
5.4.180.0240.01528.24
5.4.170.0230.01528.28
5.4.160.0210.01728.23
5.4.150.0230.01728.24
5.4.140.0240.01628.06
5.4.130.0230.01528.09
5.4.120.0230.01628.10
5.4.110.0210.01728.13
5.4.100.0230.01628.18
5.4.90.0240.01528.13
5.4.80.0230.01528.20
5.4.70.0230.01428.20
5.4.60.0250.01328.16
5.4.50.0220.01628.16
5.4.40.0220.01728.15
5.4.30.0220.01828.19
5.4.20.0230.01728.17
5.4.10.0220.01628.19
5.4.00.0220.01728.06

preferences:
43.85 ms | 401 KiB | 5 Q