3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $foo = 1; } $a = new A; $b = $a; // $a and $b are copies of the same identifier // ($a) = ($b) = <id> $b->foo = 2; echo $a->foo."\n"; $c = new A; $d = &$c; // $c and $d are references // ($c,$d) = <id> $d->foo = 2; echo $c->foo."\n"; $e = new A; function foo($obj) { // ($obj) = ($e) = <id> $obj->foo = 2; } foo($e); echo $e->foo."\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.60.0160.00618.43
8.3.50.0090.00821.21
8.3.40.0110.00318.79
8.3.30.0100.00320.17
8.3.20.0040.00420.36
8.3.10.0060.00322.02
8.3.00.0040.00422.45
8.2.180.0090.00616.38
8.2.170.0100.00722.96
8.2.160.0110.00320.32
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0030.01626.16
8.2.120.0080.00019.66
8.2.110.0090.00019.38
8.2.100.0080.00417.66
8.2.90.0080.00019.17
8.2.80.0060.00317.97
8.2.70.0060.00317.63
8.2.60.0060.00318.03
8.2.50.0030.00618.07
8.2.40.0050.00218.16
8.2.30.0030.00618.05
8.2.20.0040.00417.71
8.2.10.0080.00017.48
8.2.00.0030.00617.62
8.1.280.0120.00625.92
8.1.270.0000.00924.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00422.14
8.1.230.0100.00019.01
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0110.00017.23
8.1.190.0050.00317.23
8.1.180.0040.00420.11
8.1.170.0040.00418.52
8.1.160.0030.00322.20
8.1.150.0000.00718.68
8.1.140.0000.00817.35
8.1.130.0000.00717.78
8.1.120.0070.00017.40
8.1.110.0000.00717.35
8.1.100.0000.00817.49
8.1.90.0040.00417.39
8.1.80.0070.00017.53
8.1.70.0070.00017.33
8.1.60.0040.00417.64
8.1.50.0000.00717.56
8.1.40.0040.00417.50
8.1.30.0040.00417.47
8.1.20.0040.00417.53
8.1.10.0000.00817.59
8.1.00.0040.00417.52
8.0.300.0050.00220.22
8.0.290.0040.00416.63
8.0.280.0000.00818.40
8.0.270.0030.00317.17
8.0.260.0050.00316.82
8.0.250.0000.00616.84
8.0.240.0040.00416.95
8.0.230.0000.00717.01
8.0.220.0000.00716.92
8.0.210.0040.00416.80
8.0.200.0000.00616.97
8.0.190.0040.00416.95
8.0.180.0030.00316.77
8.0.170.0040.00416.92
8.0.160.0030.00316.88
8.0.150.0030.00316.80
8.0.140.0040.00416.80
8.0.130.0000.00613.35
8.0.120.0030.00616.86
8.0.110.0040.00416.78
8.0.100.0030.00516.78
8.0.90.0000.00716.74
8.0.80.0080.00816.91
8.0.70.0020.00516.93
8.0.60.0040.00416.64
8.0.50.0050.00216.61
8.0.30.0100.00917.09
8.0.20.0150.00617.40
8.0.10.0040.00417.06
8.0.00.0060.01116.81
7.4.330.0050.00015.03
7.4.320.0030.00316.41
7.4.300.0060.00016.48
7.4.290.0030.00316.42
7.4.280.0070.00016.63
7.4.270.0040.00416.61
7.4.260.0000.00816.50
7.4.250.0000.00816.57
7.4.240.0050.00316.50
7.4.230.0000.00716.50
7.4.220.0070.01116.38
7.4.210.0060.00816.58
7.4.200.0070.00016.39
7.4.190.0000.00816.74
7.4.160.0090.00616.52
7.4.150.0150.00317.40
7.4.140.0100.01517.86
7.4.130.0110.00916.51
7.4.120.0090.00916.52
7.4.110.0140.00416.53
7.4.100.0060.01016.48
7.4.90.0140.00316.48
7.4.80.0060.01619.39
7.4.70.0150.00316.48
7.4.60.0160.00316.59
7.4.50.0000.00816.32
7.4.40.0090.00622.77
7.4.30.0060.01216.68
7.4.00.0070.01014.85
7.3.330.0000.00613.39
7.3.320.0000.00513.16
7.3.310.0050.00216.34
7.3.300.0000.00716.29
7.3.290.0040.01116.30
7.3.280.0100.00716.28
7.3.270.0110.00717.40
7.3.260.0160.00616.32
7.3.250.0110.00616.39
7.3.240.0130.00916.63
7.3.230.0070.01016.50
7.3.210.0030.01416.24
7.3.200.0120.00619.39
7.3.190.0070.01416.34
7.3.180.0100.00716.17
7.3.170.0030.01416.72
7.3.160.0120.00316.30
7.3.120.0100.00614.92
7.3.00.0200.00016.68
7.2.330.0070.01116.63
7.2.320.0080.00816.49
7.2.310.0100.00616.80
7.2.300.0060.01016.77
7.2.290.0080.01116.52
7.2.130.0160.00616.97
7.2.120.0210.00617.03
7.2.110.0130.00916.73
7.2.100.0070.01316.88
7.2.90.0080.01217.02
7.2.80.0040.01817.05
7.2.70.0140.00916.67
7.2.60.0120.00916.72
7.2.50.0110.01116.90
7.2.40.0050.01116.77
7.2.30.0070.01017.05
7.2.20.0090.00916.56
7.2.10.0160.00516.71
7.2.00.0050.01218.33
7.1.250.0210.00715.86
7.1.240.0040.01315.69
7.1.230.0070.01415.76
7.1.220.0120.00415.73
7.1.210.0120.00815.77
7.1.200.0100.01015.91
7.1.190.0040.01415.90
7.1.180.0110.01415.79
7.1.170.0120.00615.86
7.1.160.0070.01115.82
7.1.150.0090.01215.89
7.1.140.0090.01315.68
7.1.130.0100.01015.80
7.1.120.0170.00215.89
7.1.110.0120.01415.93
7.1.100.0080.00616.94
7.1.90.0080.00415.60
7.1.80.0090.00615.68
7.1.70.0030.01016.46
7.1.60.0080.01117.37
7.1.50.0090.00516.34
7.1.40.0030.01015.46
7.1.30.0040.00415.81
7.1.20.0030.00915.86
7.1.10.0060.00915.89
7.1.00.0060.03619.00
7.0.330.0070.00715.17
7.0.320.0100.01015.38
7.0.310.0220.01115.16
7.0.300.0090.00915.21
7.0.290.0160.00615.28
7.0.280.0110.00815.44
7.0.270.0080.01215.34
7.0.260.0080.00815.36
7.0.250.0110.01115.26
7.0.240.0030.01015.53
7.0.230.0030.01215.48
7.0.220.0040.01115.40
7.0.210.0030.00915.27
7.0.200.0400.00615.18
7.0.190.0070.00715.50
7.0.180.0030.01215.07
7.0.170.0030.01315.20
7.0.160.0080.00015.45
7.0.150.0150.00015.25
7.0.140.0030.04018.67
7.0.130.0100.00315.54
7.0.120.0070.00715.50
7.0.110.0080.00315.50
7.0.100.0170.03217.63
7.0.90.0240.03717.77
7.0.80.0250.03717.62
7.0.70.0200.04517.70
7.0.60.0220.02517.57
7.0.50.0170.04517.95
7.0.40.0110.03816.89
7.0.30.0030.04816.82
7.0.20.0090.04016.87
7.0.10.0050.04416.74
7.0.00.0050.03116.76
5.6.380.0150.00514.60
5.6.370.0080.00314.26
5.6.360.0060.00314.05
5.6.350.0070.00714.08
5.6.340.0020.01214.47
5.6.330.0110.00314.41
5.6.320.0110.00314.38
5.6.310.0090.00614.14
5.6.300.0050.01414.30
5.6.290.0040.01214.45
5.6.280.0080.03717.54
5.6.270.0070.01014.34
5.6.260.0030.01114.38
5.6.250.0100.02617.52
5.6.240.0110.04717.46
5.6.230.0100.02717.52
5.6.220.0070.04317.39
5.6.210.0130.03617.39
5.6.200.0100.04417.54
5.6.190.0070.02317.63
5.6.180.0030.05017.60
5.6.170.0110.04317.52
5.6.160.0110.04117.68
5.6.150.0120.04017.56
5.6.140.0050.04717.61
5.6.130.0060.04917.80
5.6.120.0070.03617.69
5.6.110.0090.02817.50
5.6.100.0070.02517.60
5.6.90.0070.03417.72
5.6.80.0130.01817.37
5.6.70.0080.02717.47
5.6.60.0020.02617.19
5.6.50.0100.03517.32
5.6.40.0090.03917.30
5.6.30.0070.02217.14
5.6.20.0070.02517.20
5.6.10.0090.02117.21
5.6.00.0130.02017.28
5.5.380.0070.04315.78
5.5.370.0060.02415.80
5.5.360.0080.04015.77
5.5.350.0120.02815.78
5.5.340.0060.03215.98
5.5.330.0050.04115.91
5.5.320.0030.04716.03
5.5.310.0080.04515.96
5.5.300.0020.04716.03
5.5.290.0070.03615.99
5.5.280.0030.04515.95
5.5.270.0070.02716.16
5.5.260.0020.03016.06
5.5.250.0060.02515.95
5.5.240.0030.02415.75
5.5.230.0050.02615.72
5.5.220.0100.01715.68
5.5.210.0070.02215.66
5.5.200.0030.02215.63
5.5.190.0060.02215.59
5.5.180.0070.01815.70
5.5.170.0130.00011.18
5.5.160.0070.03215.66
5.5.150.0050.02015.71
5.5.140.0030.02115.64
5.5.130.0050.02515.71
5.5.120.0060.02115.66
5.5.110.0060.01815.71
5.5.100.0110.01815.63
5.5.90.0020.02415.60
5.5.80.0050.02115.63
5.5.70.0100.02015.56
5.5.60.0010.02415.60
5.5.50.0130.02015.63
5.5.40.0050.02515.63
5.5.30.0050.01915.65
5.5.20.0020.04215.55
5.5.10.0070.02115.64
5.5.00.0090.02415.62
5.4.450.0110.03815.27
5.4.440.0050.04015.33
5.4.430.0020.02515.16
5.4.420.0030.03315.23
5.4.410.0060.01815.26
5.4.400.0070.02315.21
5.4.390.0030.02215.11
5.4.380.0060.01815.19
5.4.370.0120.01515.15
5.4.360.0010.02615.15
5.4.350.0020.02415.05
5.4.340.0060.02315.19
5.4.330.0080.00411.18
5.4.320.0070.02115.21
5.4.310.0030.02515.10
5.4.300.0050.02115.24
5.4.290.0020.02915.06
5.4.280.0050.02415.18
5.4.270.0060.02115.13
5.4.260.0030.02315.06
5.4.250.0030.02115.06
5.4.240.0020.02615.11
5.4.230.0040.01915.13
5.4.220.0030.02215.15
5.4.210.0040.02215.13
5.4.200.0020.02215.20
5.4.190.0030.02315.10
5.4.180.0020.02215.11
5.4.170.0070.02215.10
5.4.160.0040.02415.03
5.4.150.0060.03115.15
5.4.140.0050.03013.82
5.4.130.0030.02213.92
5.4.120.0050.03513.85
5.4.110.0070.03713.83
5.4.100.0080.03813.82
5.4.90.0030.02113.82
5.4.80.0050.04013.84
5.4.70.0060.02013.80
5.4.60.0060.03613.76
5.4.50.0040.02113.75
5.4.40.0060.03313.81
5.4.30.0140.01813.75
5.4.20.0100.03213.77
5.4.10.0060.02213.83
5.4.00.0020.04013.52
5.3.290.0030.04212.97
5.3.280.0080.01812.91
5.3.270.0000.02512.96
5.3.260.0030.02812.86
5.3.250.0030.04112.95
5.3.240.0060.03212.86
5.3.230.0130.04012.90
5.3.220.0160.03512.87
5.3.210.0060.02812.91
5.3.200.0070.03512.84
5.3.190.0060.03912.92
5.3.180.0020.03012.92
5.3.170.0000.04112.84
5.3.160.0070.03512.92
5.3.150.0040.04112.87
5.3.140.0100.04012.84
5.3.130.0050.03012.84
5.3.120.0040.02812.87
5.3.110.0070.03012.88
5.3.100.0090.02512.60
5.3.90.0030.03012.61
5.3.80.0110.02812.61
5.3.70.0090.02812.59
5.3.60.0010.02412.57
5.3.50.0050.03512.52
5.3.40.0140.03312.59
5.3.30.0090.03912.53
5.3.20.0070.03712.40
5.3.10.0060.04012.44
5.3.00.0100.04212.37
5.2.170.0130.02011.11
5.2.160.0120.02211.10
5.2.150.0090.02411.22
5.2.140.0060.03311.12
5.2.130.0050.02011.07
5.2.120.0050.02311.18
5.2.110.0020.03411.15
5.2.100.0070.02711.09
5.2.90.0110.02311.11
5.2.80.0050.03311.14
5.2.70.0080.03311.06
5.2.60.0090.02011.06
5.2.50.0080.03811.16
5.2.40.0040.03211.03
5.2.30.0030.03711.13
5.2.20.0070.02911.13
5.2.10.0070.02811.01
5.2.00.0030.02110.88
5.1.60.0030.02710.63
5.1.50.0030.03110.51
5.1.40.0050.02710.58
5.1.30.0050.02710.74
5.1.20.0060.02510.78
5.1.10.0040.01710.55
5.1.00.0050.02810.67
5.0.50.0000.02410.27
5.0.40.0030.02510.27
5.0.30.0050.03310.27
5.0.20.0070.02310.27
5.0.10.0050.02310.27
5.0.00.0000.02110.27
4.4.90.0030.01010.27
4.4.80.0060.01510.27
4.4.70.0040.01610.27
4.4.60.0020.02210.27
4.4.50.0030.01810.27
4.4.40.0030.02710.27
4.4.30.0020.01810.27
4.4.20.0040.01510.27
4.4.10.0070.01510.27
4.4.00.0030.03010.27
4.3.110.0050.01310.27
4.3.100.0040.01110.27
4.3.90.0040.00810.27
4.3.80.0020.02710.27
4.3.70.0030.01810.27
4.3.60.0050.01210.27
4.3.50.0050.00810.27
4.3.40.0030.02910.27
4.3.30.0040.02010.27
4.3.20.0050.01610.27
4.3.10.0030.01810.27
4.3.00.0030.02010.27

preferences:
48.33 ms | 401 KiB | 5 Q