3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { public $foo = 1; } $Obj1 = new Bar( Foo.bar() ); // class Foo !? $Obj2 = new stdClass( getFoo( $Obj1 ) ); // getFoo() !?

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.0100.00716.74
8.3.60.0120.00318.43
8.3.50.0140.00921.13
8.3.40.0070.00718.64
8.3.30.0130.00319.04
8.3.20.0090.00020.16
8.3.10.0040.00423.70
8.3.00.0000.00919.02
8.2.190.0170.00018.29
8.2.180.0110.01118.41
8.2.170.0140.00718.82
8.2.160.0110.00722.96
8.2.150.0050.00325.66
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0070.00020.92
8.2.110.0030.00622.19
8.2.100.0060.00617.91
8.2.90.0000.00719.21
8.2.80.0030.00519.30
8.2.70.0000.00817.63
8.2.60.0050.00318.03
8.2.50.0050.00318.07
8.2.40.0040.00418.09
8.2.30.0000.00719.31
8.2.20.0040.00417.76
8.2.10.0040.00417.99
8.2.00.0000.00818.05
8.1.280.0090.00625.92
8.1.270.0000.01020.22
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0100.00023.88
8.1.230.0070.00319.10
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00417.36
8.1.190.0080.00017.30
8.1.180.0040.00419.01
8.1.170.0080.00018.64
8.1.160.0040.00418.70
8.1.150.0030.00618.58
8.1.140.0040.00417.31
8.1.130.0030.00317.77
8.1.120.0040.00417.39
8.1.110.0000.00817.29
8.1.100.0000.00717.41
8.1.90.0040.00417.30
8.1.80.0000.00717.32
8.1.70.0000.00717.29
8.1.60.0060.00317.43
8.1.50.0040.00417.45
8.1.40.0030.00617.48
8.1.30.0040.00417.41
8.1.20.0000.00717.61
8.1.10.0030.00617.52
8.1.00.0080.00017.45
8.0.300.0000.00718.77
8.0.290.0030.00317.05
8.0.280.0030.00318.39
8.0.270.0000.00717.29
8.0.260.0080.00017.16
8.0.250.0040.00417.01
8.0.240.0000.00816.92
8.0.230.0030.00316.97
8.0.220.0000.00716.86
8.0.210.0000.00716.88
8.0.200.0030.00316.96
8.0.190.0070.00016.98
8.0.180.0030.00517.02
8.0.170.0060.00316.86
8.0.160.0040.00417.03
8.0.150.0080.00016.79
8.0.140.0030.00316.91
8.0.130.0030.00313.39
8.0.120.0040.00416.89
8.0.110.0040.00416.84
8.0.100.0080.00016.82
8.0.90.0040.00416.94
8.0.80.0090.00616.87
8.0.70.0040.00416.83
8.0.60.0000.00816.83
8.0.50.0050.00316.91
8.0.30.0110.00817.23
8.0.20.0070.01317.40
8.0.10.0000.00716.80
8.0.00.0060.01316.78
7.4.330.0060.00015.03
7.4.320.0000.00716.49
7.4.300.0030.00316.52
7.4.290.0000.01016.47
7.4.280.0000.00816.33
7.4.270.0000.00716.53
7.4.260.0040.00416.44
7.4.250.0030.00516.50
7.4.240.0020.00516.46
7.4.230.0070.00016.45
7.4.220.0090.00616.39
7.4.210.0080.00616.51
7.4.200.0040.00416.41
7.4.160.0110.00616.30
7.4.150.0100.00717.40
7.4.140.0080.01217.86
7.4.130.0150.00416.46
7.4.120.0110.01016.52
7.4.110.0050.01316.40
7.4.100.0080.01116.53
7.4.90.0070.01116.48
7.4.80.0060.00919.39
7.4.70.0110.00616.63
7.4.60.0120.00616.64
7.4.50.0030.00516.35
7.4.40.0090.00616.45
7.4.30.0060.01216.62
7.4.00.0070.01114.92
7.3.330.0000.00513.23
7.3.320.0060.00013.25
7.3.310.0000.00716.12
7.3.300.0030.00516.16
7.3.290.0030.00316.16
7.3.280.0120.00516.34
7.3.270.0130.00317.40
7.3.260.0190.00016.45
7.3.250.0100.00916.37
7.3.240.0070.01016.55
7.3.230.0170.00716.57
7.3.210.0050.01116.44
7.3.200.0130.00319.39
7.3.190.0120.00316.33
7.3.180.0120.00616.42
7.3.170.0060.01016.48
7.3.160.0060.01016.47
7.3.120.0100.00814.69
7.3.110.0110.00614.84
7.3.100.0060.00914.82
7.3.90.0080.00814.88
7.3.80.0040.00814.80
7.3.70.0030.01214.75
7.3.60.0100.00114.81
7.3.50.0060.00814.90
7.3.40.0080.00714.78
7.3.30.0090.00614.88
7.3.20.0050.01016.63
7.3.10.0080.00416.54
7.3.00.0100.00516.55
7.2.330.0090.00916.37
7.2.320.0150.00316.67
7.2.310.0100.00616.37
7.2.300.0070.01016.59
7.2.290.0120.00616.60
7.2.250.0080.01214.97
7.2.240.0070.01014.87
7.2.230.0050.01014.80
7.2.220.0070.01014.90
7.2.210.0050.00715.00
7.2.200.0060.01015.01
7.2.190.0000.01315.00
7.2.180.0040.00914.85
7.2.170.0030.00815.00
7.2.160.0070.00714.69
7.2.150.0050.00516.71
7.2.140.0000.01516.88
7.2.130.0070.01216.70
7.2.120.0000.01316.81
7.2.110.0040.01216.93
7.2.100.0070.00716.57
7.2.90.0090.00616.71
7.2.80.0070.00716.91
7.2.70.0040.01116.66
7.2.60.0050.00916.55
7.2.50.0030.00616.91
7.2.40.0060.00916.58
7.2.30.0080.00516.76
7.2.20.0030.01216.67
7.2.10.0030.01316.70
7.2.00.0070.00618.11
7.1.330.0100.00715.57
7.1.320.0060.00815.50
7.1.310.0050.01015.56
7.1.300.0060.00715.61
7.1.290.0020.01115.55
7.1.280.0090.00515.59
7.1.270.0050.00715.61
7.1.260.0070.00715.49
7.1.250.0030.00915.83
7.1.240.0060.00915.56
7.1.230.0070.00715.67
7.1.220.0030.00915.85
7.1.210.0100.00315.76
7.1.200.0000.01615.71
7.1.190.0060.00615.41
7.1.180.0060.00315.31
7.1.170.0030.01015.64
7.1.160.0100.00315.75
7.1.150.0040.01115.85
7.1.140.0040.00815.66
7.1.130.0060.00615.61
7.1.120.0030.00915.64
7.1.110.0060.01015.64
7.1.100.0070.00516.81
7.1.90.0030.00715.46
7.1.80.0040.01115.53
7.1.70.0070.00516.19
7.1.60.0050.01317.86
7.1.50.0050.01316.32
7.1.40.0060.01015.63
7.1.30.0000.01415.75
7.1.20.0060.00615.74
7.1.10.0030.00915.34
7.1.00.0080.03719.07
7.0.330.0060.00615.23
7.0.320.0070.00715.20
7.0.310.0000.01315.16
7.0.300.0030.01015.30
7.0.290.0070.00715.42
7.0.280.0040.01115.18
7.0.270.0120.00015.37
7.0.260.0060.00614.93
7.0.250.0110.00415.38
7.0.240.0090.00015.32
7.0.230.0060.00915.46
7.0.220.0040.00415.42
7.0.210.0040.01115.20
7.0.200.0050.00615.97
7.0.190.0090.00615.15
7.0.180.0000.00815.07
7.0.170.0030.00615.42
7.0.160.0050.00315.04
7.0.150.0030.01015.04
7.0.140.0030.00515.46
7.0.130.0040.01015.15
7.0.120.0060.00615.09
7.0.110.0030.01015.16
7.0.100.0060.00615.39
7.0.90.0030.01215.27
7.0.80.0030.01414.91
7.0.70.0080.00415.14
7.0.60.0050.02217.60
7.0.50.0030.02516.68
7.0.40.0100.02816.84
7.0.30.0320.02616.63
7.0.20.0200.03316.75
7.0.10.0140.03516.75
7.0.00.0070.04816.79
5.6.400.0060.00614.13
5.6.390.0130.00314.50
5.6.380.0030.00914.32
5.6.370.0000.01014.55
5.6.360.0060.00614.12
5.6.350.0060.00313.90
5.6.340.0140.00314.42
5.6.330.0090.00614.25
5.6.320.0070.00714.46
5.6.310.0000.00914.05
5.6.300.0040.00414.36
5.6.290.0000.00814.39
5.6.280.0030.04217.61
5.6.270.0080.00814.23
5.6.260.0090.00614.17
5.6.250.0060.00914.16
5.6.240.0130.00014.07
5.6.230.0060.00314.43
5.6.220.0000.01514.12
5.6.210.0030.04917.46
5.6.200.0080.04216.41
5.6.190.0070.04717.25
5.6.180.0120.02317.33
5.6.170.0180.04317.38
5.6.160.0100.04017.45
5.6.150.0070.03216.18
5.6.140.0050.03816.13
5.6.130.0100.04316.29
5.6.120.0080.02817.80
5.6.110.0130.04217.54
5.6.100.0070.02317.74
5.6.90.0020.02917.64
5.6.80.0140.04117.30
5.6.70.2080.02317.26
5.6.60.0060.00614.25
5.6.50.0080.00614.42
5.6.40.0030.01214.04
5.6.30.0000.01414.25
5.6.20.0030.01414.18
5.6.10.0030.01013.97
5.6.00.0070.00414.11
5.5.380.0100.00714.03
5.5.370.0060.00614.29
5.5.360.0070.00414.39
5.5.350.0040.01917.24
5.5.340.0070.04015.90
5.5.330.0030.02517.10
5.5.320.0170.04317.16
5.5.310.0170.03417.24
5.5.300.0040.04016.08
5.5.290.0050.02316.15
5.5.280.0130.03517.46
5.5.270.0120.03517.64
5.5.260.0020.03017.49
5.5.250.0070.04217.42
5.5.240.0100.03017.08
5.5.230.0050.00513.99
5.5.220.0040.00713.95
5.5.210.0060.00614.06
5.5.200.0050.00514.28
5.5.190.0030.01413.87
5.5.180.0030.01014.22
5.5.170.0030.00814.08
5.5.160.0090.00614.31
5.5.150.0030.01014.06
5.5.140.0080.00414.23
5.5.130.0040.01114.17
5.5.120.0060.00614.35
5.5.110.0040.00814.39
5.5.100.0090.00314.00
5.5.90.0030.01313.97
5.5.80.0080.00414.25
5.5.70.0040.00713.90
5.5.60.0030.01114.28
5.5.50.0080.00314.27
5.5.40.0030.00513.93
5.5.30.0090.00014.41
5.5.20.0070.00714.21
5.5.10.0040.00813.99
5.5.00.0030.00913.75
5.4.450.0150.02616.35
5.4.440.0180.02116.32
5.4.430.0280.03216.23
5.4.420.0180.02416.28
5.4.410.0150.02816.21
5.4.400.0150.02316.20
5.4.390.0210.01816.20
5.4.380.0150.02116.00
5.4.370.0350.02516.13
5.4.360.0180.02716.16
5.4.350.0250.02016.01
5.4.340.0260.03016.19
5.4.330.0060.00313.16
5.4.320.0240.03116.19
5.4.310.0290.03116.08
5.4.300.0260.02616.07
5.4.290.0340.02916.14
5.4.280.0220.02516.00
5.4.270.0200.02516.19
5.4.260.0330.03016.12
5.4.250.0280.02816.19
5.4.240.0290.03216.07
5.4.230.0250.02616.19
5.4.220.0260.02616.16
5.4.210.0300.03216.18
5.4.200.0260.02016.12
5.4.190.0220.02316.16
5.4.180.0260.03616.01
5.4.170.0200.02816.16
5.4.160.0250.03016.00
5.4.150.0230.02316.06
5.4.140.0270.02714.79
5.4.130.0220.02214.83
5.4.120.0300.03114.77
5.4.110.0200.02014.86
5.4.100.0170.03414.86
5.4.90.0220.02014.71
5.4.80.0250.01514.80
5.4.70.0230.03614.85
5.4.60.0220.02014.82
5.4.50.0280.02814.75
5.4.40.0220.03014.85
5.4.30.0200.01914.70
5.4.20.0250.02914.77
5.4.10.0250.03314.85
5.4.00.0190.02414.59
5.3.290.0430.03314.88
5.3.280.0500.07014.48
5.3.270.0500.06314.61
5.3.260.0530.06314.71
5.3.250.0570.05714.50
5.3.240.0500.06314.61
5.3.230.0330.04014.64
5.3.220.0430.03314.56
5.3.210.0500.06014.49
5.3.200.0500.06314.64
5.3.190.0470.06014.60
5.3.180.0470.06014.46
5.3.170.0470.03714.47
5.3.160.0400.03314.77
5.3.150.0370.03714.54
5.3.140.0470.06014.46
5.3.130.0570.04714.61
5.3.120.0370.07714.53
5.3.110.0530.06314.48
5.3.100.0400.07313.93
5.3.90.0430.06013.95
5.3.80.0570.06014.10
5.3.70.0470.05013.92
5.3.60.0400.03314.22
5.3.50.0530.05014.02
5.3.40.0430.03013.87
5.3.30.0500.03713.83
5.3.20.0470.06013.61
5.3.10.0330.05013.70
5.3.00.0400.04713.79
5.2.170.0330.04312.30
5.2.160.0400.05312.30
5.2.150.0370.06012.30
5.2.140.0430.05012.30
5.2.130.0370.03012.30
5.2.120.0370.04312.30
5.2.110.0230.03012.30
5.2.100.0370.02312.30
5.2.90.0300.03012.30
5.2.80.0470.02712.30
5.2.70.0470.02712.30
5.2.60.0330.03012.30
5.2.50.0530.04312.30
5.2.40.0330.04712.30
5.2.30.0470.02712.30
5.2.20.0270.04312.30
5.2.10.0270.02712.30
5.2.00.0430.02312.30
5.1.60.0300.02012.30
5.1.50.0270.03012.30
5.1.40.0330.04712.30
5.1.30.0270.03712.30
5.1.20.0400.02312.30
5.1.10.0270.05712.30
5.1.00.0270.03712.30
5.0.50.0130.02712.30
5.0.40.0130.02012.30
5.0.30.0130.03012.30
5.0.20.0170.02712.30
5.0.10.0130.02712.30
5.0.00.0130.04012.30
4.4.90.0130.01712.30
4.4.80.0270.02312.30
4.4.70.0230.02712.30
4.4.60.0200.03012.30
4.4.50.0130.02012.30
4.4.40.0200.02012.30
4.4.30.0130.02712.30
4.4.20.0170.02012.30
4.4.10.0200.03012.30
4.4.00.0130.02312.30
4.3.110.0200.03012.30
4.3.100.0100.01312.30
4.3.90.0130.03312.30
4.3.80.0170.05012.30
4.3.70.0170.02012.30
4.3.60.0170.01712.30
4.3.50.0200.02312.30
4.3.40.0170.04712.30
4.3.30.0070.02012.30
4.3.20.0100.03312.30
4.3.10.0100.03012.30
4.3.00.0070.02012.30

preferences:
32.22 ms | 401 KiB | 5 Q