3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass{ public $foo; public $bar; public function __debugInfo() { return [ 'foo' => $this->foo, 'bat' => $this->bar, ]; } } $instanceOfMyClass = new MyClass(); $instanceOfMyClass->foo = 1; $instanceOfMyClass->bar = "two"; var_dump($instanceOfMyClass); ?>

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.40.0140.00318.79
8.3.30.0070.00719.08
8.3.20.0040.00420.16
8.3.10.0080.00020.39
8.3.00.0030.00519.25
8.2.170.0110.00422.96
8.2.160.0070.01120.38
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00321.04
8.2.110.0060.00322.25
8.2.100.0120.00017.72
8.2.90.0030.00618.22
8.2.80.0040.00418.66
8.2.70.0000.00817.50
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0030.00618.02
8.2.30.0000.00717.98
8.2.20.0070.00017.63
8.2.10.0040.00418.04
8.2.00.0000.00717.62
8.1.270.0000.00823.97
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.93
8.1.230.0080.00319.10
8.1.220.0080.00017.74
8.1.210.0050.00518.77
8.1.200.0030.00617.23
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0030.00318.87
8.1.150.0000.00718.72
8.1.140.0040.00417.31
8.1.130.0030.00317.87
8.1.120.0070.00017.29
8.1.110.0040.00417.42
8.1.100.0070.00017.39
8.1.90.0030.00317.35
8.1.80.0040.00317.36
8.1.70.0070.00017.32
8.1.60.0000.00917.59
8.1.50.0040.00417.56
8.1.40.0040.00417.43
8.1.30.0040.00417.65
8.1.20.0050.00217.62
8.1.10.0040.00417.51
8.1.00.0040.00417.34
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0000.00718.44
8.0.270.0030.00317.20
8.0.260.0060.00017.14
8.0.250.0030.00316.91
8.0.240.0000.00616.89
8.0.230.0000.00716.88
8.0.220.0030.00616.83
8.0.210.0040.00416.73
8.0.200.0000.00716.90
8.0.190.0000.00716.80
8.0.180.0000.00716.83
8.0.170.0000.00716.77
8.0.160.0030.00516.72
8.0.150.0040.00416.75
8.0.140.0040.00416.80
8.0.130.0030.00313.21
8.0.120.0000.00816.69
8.0.110.0040.00416.73
8.0.100.0040.00416.82
8.0.90.0000.00716.72
8.0.80.0030.01316.77
8.0.70.0030.00616.70
8.0.60.0000.00716.63
8.0.50.0000.00716.70
8.0.30.0110.00817.01
8.0.20.0100.00717.40
8.0.10.0000.00716.98
8.0.00.0120.00716.77
7.4.330.0000.00515.00
7.4.320.0000.00616.59
7.4.300.0060.00016.51
7.4.290.0040.00416.59
7.4.280.0040.00416.62
7.4.270.0030.00516.63
7.4.260.0030.00316.46
7.4.250.0020.00516.39
7.4.240.0020.00516.45
7.4.230.0000.00716.51
7.4.220.0120.00616.64
7.4.210.0040.01016.45
7.4.200.0000.00716.70
7.4.160.0090.00916.59
7.4.150.0120.00617.40
7.4.140.0050.01417.86
7.4.130.0080.01016.49
7.4.120.0090.01216.58
7.4.110.0140.00316.65
7.4.100.0120.00616.59
7.4.90.0070.01316.46
7.4.80.0140.00419.39
7.4.70.0080.01116.41
7.4.60.0120.00916.33
7.4.50.0030.00316.23
7.4.40.0090.00816.42
7.4.30.0060.01216.36
7.4.10.0060.01314.52
7.4.00.0070.00714.61
7.3.330.0000.00513.13
7.3.320.0000.00513.06
7.3.310.0030.00316.16
7.3.300.0060.00016.31
7.3.290.0120.00416.21
7.3.280.0090.00516.28
7.3.270.0090.00917.40
7.3.260.0110.00616.31
7.3.250.0130.01016.31
7.3.240.0130.00516.57
7.3.230.0100.01316.45
7.3.210.0150.00616.38
7.3.200.0090.00919.39
7.3.190.0100.01316.57
7.3.180.0060.01516.27
7.3.170.0070.01016.31
7.3.160.0120.00616.38
7.3.130.0100.00614.25
7.3.120.0070.01014.53
7.3.110.0030.01515.04
7.3.100.0080.00514.55
7.3.90.0030.01014.56
7.3.80.0090.00614.75
7.3.70.0060.00814.86
7.3.60.0000.01614.80
7.3.50.0080.00414.46
7.3.40.0030.00614.66
7.3.30.0040.00714.60
7.3.20.0100.00416.54
7.3.10.0080.00416.66
7.3.00.0030.00616.45
7.2.330.0130.01016.74
7.2.320.0130.00916.64
7.2.310.0070.01016.73
7.2.300.0160.00316.39
7.2.290.0080.00816.71
7.2.260.0040.01115.00
7.2.250.0030.01615.06
7.2.240.0100.00314.61
7.2.230.0040.01114.89
7.2.220.0100.00615.16
7.2.210.0040.01114.77
7.2.200.0060.00915.15
7.2.190.0040.01114.64
7.2.180.0000.01514.88
7.2.170.0030.00914.89
7.2.160.0060.00314.82
7.2.150.0060.00616.50
7.2.140.0090.00616.91
7.2.130.0030.00916.48
7.2.120.0070.00716.38
7.2.110.0090.00316.64
7.2.100.0060.00916.70
7.2.90.0000.01517.04
7.2.80.0090.00617.14
7.2.70.0030.01317.07
7.2.60.0100.00716.87
7.2.50.0100.01017.01
7.2.40.0040.01217.12
7.2.30.0070.01016.93
7.2.20.0060.00617.04
7.2.10.0030.00616.73
7.2.00.0070.00717.95
7.1.330.0070.00715.62
7.1.320.0030.01315.69
7.1.310.0060.00915.62
7.1.300.0070.00715.96
7.1.290.0040.00815.79
7.1.280.0000.01215.66
7.1.270.0090.00315.44
7.1.260.0000.01015.77
7.1.250.0040.00815.56
7.1.240.0070.00715.47
7.1.230.0060.00615.66
7.1.220.0100.00715.43
7.1.210.0000.01215.76
7.1.200.0040.00415.87
7.1.190.0090.00915.45
7.1.180.0030.01315.43
7.1.170.0070.01015.50
7.1.160.0030.00915.47
7.1.150.0070.00415.55
7.1.140.0060.00615.68
7.1.130.0000.01015.88
7.1.120.0070.00715.79
7.1.110.0050.00515.85
7.1.100.0050.00716.67
7.1.90.0040.01115.80
7.1.80.0070.00715.94
7.1.70.0050.00316.36
7.1.60.0050.01217.50
7.1.50.0050.00816.16
7.1.40.0060.00315.84
7.1.30.0000.01115.74
7.1.20.0000.01415.66
7.1.10.0000.00915.61
7.1.00.0020.04119.10
7.0.330.0040.01115.29
7.0.320.0030.01315.32
7.0.310.0100.00315.14
7.0.300.0090.00915.29
7.0.290.0090.00315.27
7.0.280.0000.01515.25
7.0.270.0050.00315.46
7.0.260.0070.00715.34
7.0.250.0000.01415.40
7.0.240.0120.00315.30
7.0.230.0000.01015.50
7.0.220.0110.00415.35
7.0.210.0030.00615.40
7.0.200.0030.00615.93
7.0.190.0060.00615.51
7.0.180.0000.00915.36
7.0.170.0040.00415.09
7.0.160.0030.00615.43
7.0.150.0040.00715.13
7.0.140.0040.04018.66
7.0.130.0040.00415.08
7.0.120.0040.00715.38
7.0.110.0090.00315.29
7.0.100.0030.00515.18
7.0.90.0030.00715.40
7.0.80.0060.00615.14
7.0.70.0030.00715.11
7.0.60.0120.02217.54
7.0.50.0080.04016.63
7.0.40.0100.04016.86
7.0.30.0080.03716.71
7.0.20.0170.04416.68
7.0.10.0060.02316.78
7.0.00.0070.02616.77
5.6.400.0090.00613.96
5.6.390.0080.00314.71
5.6.380.0030.01014.32
5.6.370.0070.00714.50
5.6.360.0000.01514.20
5.6.350.0030.01014.35
5.6.340.0070.00714.29
5.6.330.0080.00814.45
5.6.320.0000.00914.39
5.6.310.0070.00714.65
5.6.300.0080.00614.16
5.6.290.0000.01214.55
5.6.280.0050.04017.72
5.6.270.0080.00814.24
5.6.260.0040.00814.43
5.6.250.0070.00414.21
5.6.240.0060.00314.49
5.6.230.0060.00914.26
5.6.220.0070.00414.21
5.6.210.0070.04317.49
5.6.200.0060.02616.17
5.6.190.0050.04517.55
5.6.180.0160.04317.42
5.6.170.0130.02817.46
5.6.160.0080.03617.19
5.6.150.0070.04016.31
5.6.140.0080.04116.44
5.6.130.0050.02216.35
5.6.120.0050.04317.74
5.6.110.0130.04017.61
5.6.100.0090.04517.53
5.6.90.0090.04017.67
5.6.80.0090.02817.31
5.6.70.0110.00014.30
5.6.60.0060.00614.50
5.6.50.0040.01113.87
5.6.40.0040.01214.35
5.6.30.0100.00014.27
5.6.20.0040.01114.42
5.6.10.0080.00414.42
5.6.00.0030.01013.81
5.5.380.0100.00314.43
5.5.370.0060.00614.31
5.5.360.0000.01613.89
5.5.350.0080.03317.33
5.5.340.0080.03516.19
5.5.330.0050.02717.12
5.5.320.0210.04017.38
5.5.310.0200.04217.28
5.5.300.0020.03016.24
5.5.290.0080.04216.16
5.5.280.0070.03617.34
5.5.270.0040.04017.54
5.5.260.0060.02317.50
5.5.250.0100.03517.49
5.5.240.0200.03717.37
5.5.230.0040.01214.08
5.5.220.0060.00614.17
5.5.210.0000.01714.12
5.5.200.0060.00914.07
5.5.190.0070.00713.99
5.5.180.0100.00314.38
5.5.170.0090.00614.18
5.5.160.0060.00614.00
5.5.150.0030.00614.09
5.5.140.0070.00314.06
5.5.130.0040.00814.32
5.5.120.0030.00913.96
5.5.110.0030.00914.48
5.5.100.0060.00614.35
5.5.90.0030.01014.07
5.5.80.0040.00814.28
5.5.70.0030.01014.34
5.5.60.0030.01014.26
5.5.50.0030.01414.11
5.5.40.0000.01014.08
5.5.30.0090.00014.46
5.5.20.0090.00614.32
5.5.10.0120.00414.05
5.5.00.0040.00814.11
5.4.450.0130.02515.20
5.4.440.0170.02615.17
5.4.430.0550.02515.10
5.4.420.0120.02215.19
5.4.410.0280.02315.11
5.4.400.0210.02815.17
5.4.390.0100.02315.01
5.4.380.0200.03814.66
5.4.370.0210.03014.78
5.4.360.0180.03414.88
5.4.350.0280.03814.57
5.4.340.0200.02814.83
5.4.330.0000.00810.89
5.4.320.0100.01911.77
5.4.310.0070.01911.71
5.4.300.0070.02411.85
5.4.290.0050.02111.86
5.4.280.0060.01911.65
5.4.270.0090.02211.64
5.4.260.0060.02611.76
5.4.250.0040.02311.67
5.4.240.0070.02211.68
5.4.230.0070.01911.64
5.4.220.0100.02211.53
5.4.210.0050.02511.59
5.4.200.0080.02011.59
5.4.190.0030.02711.74
5.4.180.0070.02111.55
5.4.170.0090.02111.71
5.4.160.0060.02011.67
5.4.150.0100.02111.69
5.4.140.0070.02411.53
5.4.130.0070.02211.44
5.4.120.0080.02311.48
5.4.110.0030.02211.54
5.4.100.0080.02111.57
5.4.90.0040.02911.64
5.4.80.0100.02111.57
5.4.70.0060.02411.49
5.4.60.0070.02411.55
5.4.50.0050.02011.39
5.4.40.0060.01911.58
5.4.30.0080.01811.38
5.4.20.0060.02011.53
5.4.10.0070.01811.42
5.4.00.0040.02111.27
5.3.290.0050.03912.80
5.3.280.0090.04012.71
5.3.270.0060.04012.72
5.3.260.0080.04812.72
5.3.250.0090.04212.72
5.3.240.0080.04512.72
5.3.230.0080.04112.71
5.3.220.0110.03512.68
5.3.210.0090.03612.68
5.3.200.0050.04512.68
5.3.190.0060.04012.68
5.3.180.0060.03612.67
5.3.170.0050.03912.67
5.3.160.0110.04412.67
5.3.150.0090.04012.67
5.3.140.0100.03612.66
5.3.130.0060.03912.66
5.3.120.0060.04312.66
5.3.110.0090.04412.66
5.3.100.0090.03812.12
5.3.90.0110.04012.11
5.3.80.0090.03812.09
5.3.70.0080.03812.09
5.3.60.0050.03912.08
5.3.50.0070.03512.03
5.3.40.0080.03912.03
5.3.30.0070.03711.98
5.3.20.0050.03611.76
5.3.10.0070.03911.73
5.3.00.0090.03811.71
5.2.170.0080.0309.23
5.2.160.0070.0349.22
5.2.150.0080.0329.23
5.2.140.0070.0329.22
5.2.130.0090.0399.18
5.2.120.0020.0329.18
5.2.110.0130.0259.19
5.2.100.0080.0279.18
5.2.90.0060.0299.18
5.2.80.0040.0369.18
5.2.70.0060.0299.17
5.2.60.0060.0379.13
5.2.50.0060.0309.09
5.2.40.0060.0359.07
5.2.30.0040.0359.05
5.2.20.0050.0289.04
5.2.10.0060.0298.95
5.2.00.0100.0258.81
5.1.60.0040.0318.09
5.1.50.0030.0328.09
5.1.40.0050.0258.07
5.1.30.0050.0258.41
5.1.20.0060.0288.45
5.1.10.0070.0348.16
5.1.00.0040.0268.16
5.0.50.0030.0276.64
5.0.40.0070.0186.50
5.0.30.0040.0386.32
5.0.20.0030.0276.28
5.0.10.0060.0216.26
5.0.00.0070.0286.25
4.4.90.0050.0184.78
4.4.80.0020.0164.75
4.4.70.0050.0254.75
4.4.60.0060.0194.76
4.4.50.0030.0184.77
4.4.40.0060.0304.71
4.4.30.0060.0194.76
4.4.20.0020.0214.85
4.4.10.0030.0264.85
4.4.00.0020.0324.76
4.3.110.0060.0194.67
4.3.100.0040.0174.67
4.3.90.0050.0154.63
4.3.80.0030.0264.58
4.3.70.0070.0204.63
4.3.60.0050.0194.63
4.3.50.0020.0214.63
4.3.40.0030.0244.54
4.3.30.0020.0163.30
4.3.20.0030.0173.28
4.3.10.0010.0193.23
4.3.00.0030.01314.49

preferences:
46.99 ms | 400 KiB | 5 Q