3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Super { public $child; function setChild(Child $child){ echo "setting child to super\n"; $this->child = $child; $child->setSuper($this); } function getChild(){ return $this->child; } } class Child { public $super; function setSuper(Super $super){ echo "setting super to child\n"; $this->super = $super; $this->super->setChild($this); } function getSuper(){ return $this->super; } } $super = new Super; $child = new Child; $super->setChild($child); var_dump($super); $super = new Super; $child = new Child; $child->setSuper($super); var_dump($super);

Abusive script

This script was stopped while abusing our resources

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.110.0030.00618.59
8.3.100.0030.00616.89
8.3.90.0180.00326.77
8.3.80.0030.00618.31
8.3.70.0140.00316.61
8.3.60.0160.00316.63
8.3.50.0140.00722.05
8.3.40.0130.00319.09
8.3.30.0060.01318.92
8.3.20.0060.00320.45
8.3.10.0060.00323.51
8.3.00.0040.00419.38
8.2.230.0150.00720.94
8.2.220.0070.00324.06
8.2.210.0060.00326.77
8.2.200.0100.00016.88
8.2.190.0070.01016.75
8.2.180.0150.00925.92
8.2.170.0100.00619.16
8.2.160.0100.00722.96
8.2.150.0040.00424.18
8.2.140.0100.00024.66
8.2.130.0160.00626.16
8.2.120.0030.00620.93
8.2.110.0040.00720.96
8.2.100.0100.00318.16
8.2.90.0060.00319.54
8.2.80.0040.00418.38
8.2.70.0040.00418.18
8.2.60.0000.00817.88
8.2.50.0030.00518.47
8.2.40.0000.00820.79
8.2.30.0030.00619.62
8.2.20.0080.00017.82
8.2.10.0060.00318.21
8.2.00.0080.00018.20
8.1.290.0060.00630.84
8.1.280.0130.00325.92
8.1.270.0030.00623.99
8.1.260.0060.00326.35
8.1.250.0130.00928.09
8.1.240.0090.00023.83
8.1.230.0060.00622.75
8.1.220.0000.01017.89
8.1.210.0040.00418.77
8.1.200.0030.00717.48
8.1.190.0120.00017.48
8.1.180.0030.00518.10
8.1.170.0080.00018.84
8.1.160.0000.00819.08
8.1.150.0040.00420.59
8.1.140.0000.00819.77
8.1.130.0000.00717.75
8.1.120.0040.00417.70
8.1.110.0040.00417.69
8.1.100.0040.00417.67
8.1.90.0040.00417.59
8.1.80.0040.00417.70
8.1.70.0080.00017.67
8.1.60.0060.00317.86
8.1.50.0080.00017.70
8.1.40.0040.00417.82
8.1.30.0000.00817.90
8.1.20.0000.00817.79
8.1.10.0040.00417.75
8.1.00.0040.00417.82
8.0.300.0030.00520.40
8.0.290.0040.00416.88
8.0.280.0040.00418.53
8.0.270.0040.00417.46
8.0.260.0030.00317.05
8.0.250.0040.00417.08
8.0.240.0070.00017.10
8.0.230.0000.00717.13
8.0.220.0040.00417.04
8.0.210.0040.00417.07
8.0.200.0050.00517.23
8.0.190.0060.00317.06
8.0.180.0040.00417.11
8.0.170.0000.00917.08
8.0.160.0050.00316.96
8.0.150.0050.00316.97
8.0.140.0000.00717.10
8.0.130.0040.00413.58
8.0.120.0060.00317.05
8.0.110.0090.00016.99
8.0.100.0080.00016.95
8.0.90.0090.00017.04
8.0.80.0120.00617.01
8.0.70.0080.00017.05
8.0.60.0040.00417.10
8.0.50.0050.00317.08
8.0.30.0180.01117.33
8.0.20.0160.01017.40
8.0.10.0050.00217.09
8.0.00.0130.01416.92
7.4.330.0030.00315.08
7.4.320.0030.00316.59
7.4.300.0030.00316.55
7.4.290.0030.00416.58
7.4.280.0050.00316.73
7.4.270.0000.00716.59
7.4.260.0030.00416.50
7.4.250.0040.00416.58
7.4.240.0070.00016.65
7.4.230.0070.00016.56
7.4.220.0100.01416.62
7.4.210.0100.00716.64
7.4.200.0040.00416.63
7.4.160.0210.00616.75
7.4.150.0080.02117.40
7.4.140.0160.01217.86
7.4.130.0180.00916.60
7.4.120.0140.01116.81
7.4.110.0240.01116.64
7.4.100.0170.02116.83
7.4.90.0250.00716.64
7.4.80.0160.01119.39
7.4.70.0100.01016.85
7.4.60.0120.01616.64
7.4.50.0060.00316.75
7.4.40.0070.01316.74
7.4.30.0140.00716.59
7.3.330.0000.00813.33
7.3.320.0040.00413.36
7.3.310.0000.00716.18
7.3.300.0080.00016.40
7.3.290.0110.00816.42
7.3.280.0110.01216.49
7.3.270.0050.01817.40
7.3.260.0280.00316.39
7.3.250.0210.00316.40
7.3.240.0200.01016.38
7.3.230.0140.01116.66
7.3.210.0110.01416.41
7.3.200.0170.01116.62
7.3.190.0160.01116.66
7.3.180.0170.00316.50
7.3.170.0180.01516.95
7.3.160.0120.01016.58
7.2.330.0090.01517.11
7.2.320.0180.00616.65
7.2.310.0120.01617.16
7.2.300.0170.00316.95
7.2.290.0170.00616.64
7.2.100.0900.01015.01
7.2.90.0140.00715.08
7.2.80.0300.00814.68
7.2.70.0160.00815.06
7.2.60.0250.00515.22
7.2.50.0130.00914.99
7.2.40.0190.00714.96
7.2.30.0490.00715.60
7.2.20.0240.00415.39
7.2.10.1090.00315.02
7.2.00.0340.00315.00
7.1.220.0140.01414.04
7.1.210.1190.00014.26
7.1.200.0890.00614.43
7.1.190.0080.00813.80
7.1.180.0980.00313.70
7.1.170.0680.00013.94
7.1.160.1090.00613.75
7.1.150.0920.00714.00
7.1.140.0170.00714.29
7.1.130.0560.00714.04
7.1.120.0110.00614.26
7.1.110.0600.00014.03
7.1.100.0130.01114.38
7.1.90.0200.00013.98
7.1.80.0690.00314.16
7.1.70.0850.00914.00
7.1.60.0390.00532.45
7.1.50.1070.02332.44
7.1.40.0860.01032.03
7.1.30.1310.01932.32
7.1.20.1070.00932.37
7.1.10.0540.00314.00
7.1.00.0960.00313.97
7.0.310.0130.00413.65
7.0.300.0860.00913.61
7.0.290.0840.00313.75
7.0.280.0170.01213.85
7.0.270.0150.00213.56
7.0.260.0070.01313.76
7.0.250.0700.00614.09
7.0.240.0420.00413.79
7.0.230.0210.00513.85
7.0.220.0860.01013.98
7.0.210.0160.00413.77
7.0.200.0190.00214.00
7.0.190.1230.00713.93
7.0.180.0850.00314.04
7.0.170.1150.00713.99
7.0.160.0890.00313.64
7.0.150.0880.00413.90
7.0.140.0940.01213.68
7.0.130.0670.01313.86
7.0.120.0310.00714.07
7.0.110.0650.01314.13
7.0.100.0830.00313.61
7.0.90.0690.01614.11
7.0.80.0730.00313.90
7.0.70.0810.00313.62
7.0.60.0950.00613.82
7.0.50.1150.00313.93
7.0.40.0110.00813.89
7.0.30.0130.00613.88
7.0.20.0890.00713.58
7.0.10.0910.00613.64
7.0.00.0380.01013.96
5.6.380.0120.00214.62
5.6.370.0140.00715.13
5.6.360.0120.00814.77
5.6.350.0060.01214.77
5.6.340.0130.00714.94
5.6.330.0110.01115.63
5.6.320.0130.00315.35
5.6.310.0110.00915.00
5.6.300.0140.00715.70
5.6.290.0130.00815.17
5.6.280.0060.01515.29
5.6.270.0170.01215.00
5.6.260.0040.01615.35
5.6.250.0030.02014.75
5.6.240.0090.01315.61
5.6.230.0130.00915.21
5.6.220.0090.00615.01
5.6.210.0140.00814.57
5.6.200.0090.00914.77
5.6.190.0140.00814.86
5.6.180.0100.00514.75
5.6.170.0110.01114.93
5.6.160.0100.00714.86
5.6.150.0100.00514.59
5.6.140.0200.00615.66
5.6.130.0130.00314.77
5.6.120.0100.00314.79
5.6.110.0140.00714.76
5.6.100.0110.00615.46
5.6.90.0130.01015.49
5.6.80.0110.01114.64
5.6.70.0060.01514.74
5.6.60.0130.00314.83
5.5.380.0110.00411.73
5.5.370.0110.01112.34
5.5.360.0090.00611.80
5.5.350.0130.00312.18
5.5.340.0040.01211.73
5.5.330.0110.00811.91
5.5.320.0100.01412.71
5.5.310.0150.00011.73
5.5.300.0140.00012.39
5.5.290.0090.00912.02
5.5.280.0120.00612.33
5.5.270.0100.00711.75
5.5.260.0080.00511.83
5.5.250.0100.00311.73
5.5.240.0070.01111.73
5.5.230.0160.00011.73
5.4.450.0160.00011.82
5.4.440.0090.01212.12
5.4.430.0060.00911.73
5.4.420.0140.00312.07
5.4.410.0040.01511.98
5.4.400.0120.00311.73
5.4.390.0100.00711.88

preferences:
121.02 ms | 11319 KiB | 5 Q